in reply to Re: Error from timelocal
in thread Error from timelocal

Yes, since its December, you're probably using 12 which is out-of range for $month. You may also need to subtract 1900 from the year since it (currently) needs to be 102. Try dumping the values from localtime so that you can see what the values should look like, as in:
use strict; use Data::Dumper; my @time_ary = localtime(time); print Dumper(\@time_ary);
Where do you want *them* to go today?

Replies are listed 'Best First'.
Re: Re: Error from timelocal
by bart (Canon) on Dec 21, 2002 at 10:43 UTC
    You may also need to subtract 1900 from the year since it (currently) needs to be 102.
    Time::Local is smart enough to figure that out by itself.