Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: How to find yesterdays date (was: Date)

by Tyke (Pilgrim)
on Mar 12, 2001 at 18:04 UTC ( #63810=note: print w/ replies, xml ) Need Help??


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:

my $yesterdays_date = localtime; sleep 86400; print "Yesterday, it was $yesterdays_date\n"; sleep -86400;
Yes, yes, I know it's sad...

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.


Comment on Re: Re: How to find yesterdays date (was: Date)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://63810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-09-19 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls