in reply to How to find yesterdays date (was: Date)
Okay, without using modules:
Season to taste.my ($day, $month, $year, $filename); (undef, undef, undef, $day, $month, $year, undef) = localtime(time() - + (24*60*60)); $filename = sprintf("%02d-%02d-%04d.txt", $day, $month+1, $year+1900);
And, yes, you really should learn to use modules. They're invaluable.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Date
by dws (Chancellor) on Mar 12, 2001 at 03:01 UTC | |
by Anonymous Monk on Mar 12, 2001 at 03:43 UTC | |
by dws (Chancellor) on Mar 12, 2001 at 04:42 UTC | |
by Anonymous Monk on Mar 12, 2001 at 05:31 UTC |
In Section
Seekers of Perl Wisdom