use Date::Simple qw(date); my $d = date("2007-12-12"); my $yesterday = $d - 1; print $yesterday;
And of course it can be done without a module, because the module is written in Perl as well.
If you want to see how it's done, look at the module's source.
In reply to Re: How to subtract date by 1 day
by moritz
in thread How to subtract date by 1 day
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |