PDA

View Full Version : uninitialized values in Time::Local.. again



Richard Grant
2005-04-03, 12:49
Hey.. downloaded 6.0.. installed ok. Tried one of my plugins and getting a
Time::Local problem. I solved it in the past by mods to Time::Local as per a
web report by an aussie with a really cool name, Ron Savage.. Would like to
do the same, but @INC is skipping my local spec, and even moving Time::Local
into Plugin folder no help. See below for refs.

Richard

==========

http://www.issociate.de/board/post/133546/Time::Local_V_1.10_and_users_there
of,_eg_Archive::Zip_V_1.14.html

Change file 152 of Local.pm from:
local ($Min{Day}, $Min{Sec}) = _zoneadjust($Min{Day}, $Min{Sec},$MinInt);
to
local ($Min{Day}, $Min{Sec}) = _zoneadjust($Min{Day}, $Min{Sec}, 0);
and all the uninitialized warnings are fixed.
It's clear the minimum value acceptable to localtime is 0, not min int.

==========

Use of uninitialized value in integer addition (+) at /PerlApp/Time/Local.pm
lin
e 76.
Use of uninitialized value in integer multiplication (*) at
/PerlApp/Time/Local.
pm line 76.
Use of uninitialized value in integer multiplication (*) at
/PerlApp/Time/Local.
pm line 76.
Use of uninitialized value in pack at /PerlApp/Time/Local.pm line 67.
Use of uninitialized value in pack at /PerlApp/Time/Local.pm line 67.
Use of uninitialized value in integer addition (+) at /PerlApp/Time/Local.pm
lin
e 67.
Use of uninitialized value in integer addition (+) at /PerlApp/Time/Local.pm
lin
e 76.
Use of uninitialized value in integer multiplication (*) at
/PerlApp/Time/Local.
pm line 76.
Use of uninitialized value in integer multiplication (*) at
/PerlApp/Time/Local.
pm line 76.
Use of uninitialized value in pack at /PerlApp/Time/Local.pm line 67.
Use of uninitialized value in pack at /PerlApp/Time/Local.pm line 67.
Use of uninitialized value in integer addition (+) at /PerlApp/Time/Local.pm
lin
e 67.