in reply to Date Trickiness

Here's another way:

my $time = POSIX::strftime "%Y%m%d",localtime; sleep 86400; # wait until tomorrow :-) my $log = $time . ".log";
I can't take credit for this, it comes from dominus's wonderful Infrequently asked questions list.

Update
Well, at least I thought it was. I can't seem to find it on there anymore....

Replies are listed 'Best First'.
Re^2:
by Zed_Lopez (Chaplain) on Oct 01, 2004 at 19:00 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.