in reply to Timelocal, Localtime Bug?

$ perl -le'my $test = localtime( 0, 0, $month, 1, 31, 2012 ); print $t +est' Too many arguments for localtime at -e line 1, near "2012 )" Execution of -e aborted due to compilation errors.

Your code won't even compile, let alone run.

Replies are listed 'Best First'.
Re^2: Timelocal, Localtime Bug?
by Riales (Hermit) on Mar 29, 2012 at 22:10 UTC

    It looks like it might run if you flip localtime and timelocal with each other (I'm guessing timelocal takes the arguments localtime is currently taking and vice-versa).

    That said, I have no idea concerning the original question. ><

      Sorry guys! My development machine is not connected to the internet, so I had to type the chunk of applicable code and I mixed up timelocal and localtime. I fixed the code samples in the original post, so now my original question actually applies (also put 3 instead of 31... I hate fat fingers today). Sorry!