in reply to Re: How to find yesterdays date (was: Date)
in thread How to find yesterdays date (was: Date)
If you're going to dust this one off, you could also
mention the standard optimisation:
Yes, yes, I know it's sad...my $yesterdays_date = localtime; sleep 86400; print "Yesterday, it was $yesterdays_date\n"; sleep -86400;
Update: Can't claim credit... I believe that belong to Ilya Zakharevich, otherwise it would have been even sadder, and I wouldn't've dared post.
In Section
Seekers of Perl Wisdom