Try hitting "perldoc -f localtime".
For example,
use POSIX qw(strftime); $now_string = strftime "error%Y-%m-%d.txt", localtime; print "$now_string\n";
Update: I gotta learn to type faster. :)
Update: Noticed a bug.
Cē
In reply to Re: Date in Filename
by cciulla
in thread Date in Filename
by SQLMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |