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