Hello use Date::Calc qw(Add_Delta_Days) Erich ________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zilore mumba Sent: Wednesday, December 03, 2008 7:05 AM To: [email protected] Subject: How to get yesterday's date in Perl After brouwsing a lot ofdocumentation I cannot find how to get yesterday's or tomorrow's date in Perl, like `date --date "-1 day" "+%Y%m%d"` in bash. Is this possible in Perl? I am making date directories, like 20081203. If I add, I get a problem at the end/begining of the month, I get like 20081131 or 20081200. Thanks for any assistance. Zilore
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
