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