sravs448 has asked for the wisdom of the Perl Monks concerning the following question:
I am getting an error using POSIX . strftime. I followed the guidelines mentioned in perldoc http://perldoc.perl.org/functions/localtime.html
what is the mistake I did here
use strict; use warnings; use POSIX qw(strftime); my $datestring = strftime "%B %d %Y", localtime; print("date - $datestring\n");
Output message :
Usage: POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -
1, isdst = -1) at C:\Users\asdsa\Desktop\testmail.pl line 4.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error while using POSIX strftime
by Corion (Patriarch) on Sep 16, 2014 at 20:44 UTC | |
|
Re: Error while using POSIX strftime
by Anonymous Monk on Sep 16, 2014 at 20:08 UTC | |
by sravs448 (Acolyte) on Sep 16, 2014 at 20:18 UTC | |
by Anonymous Monk on Sep 16, 2014 at 20:49 UTC | |
by toolic (Bishop) on Sep 16, 2014 at 20:34 UTC | |
by sravs448 (Acolyte) on Sep 16, 2014 at 20:40 UTC | |
by Anonymous Monk on Sep 16, 2014 at 21:18 UTC |