use strict;
use warnings;
use POSIX qw(strftime);
my @lt = localtime;
use Data::Dumper;
print Dumper(\@lt);
my $datestring = strftime "%B %d %Y", @lt;
print("date - $datestring\n");
Please post the output.
| [reply] [d/l] |
What version of Perl are you using? Perhaps it is a bug in an old version of POSIX
perl -v
| [reply] [d/l] |
toolic asked you to post the output of perl -v so we can get a better picture of your system; even better, post the output of perl -V. Are you using Strawberry Perl, cygwin, or ActiveState, and do you possibly have multiple installed on your machine?
Also, could you post what perl -MPOSIX -e 'print $POSIX::VERSION' outputs?
| [reply] [d/l] [select] |