Take a look at some of the date modules, including Date::Calc or even Class::Date. An example of the latter would look like:
use strict; use Class::Date; my ( $m, $d, $y ) = split( '/', '10/24/2000' ); my $d = Class::Date->new([ $y, $m, $d ]); my $before = $d - '1D'; print "Day before: $before";
Chris
M-x auto-bs-mode
In reply to Re: Calculating 1-day-before
by lachoy
in thread Calculating 1-day-before
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |