Think about Loose Coupling | |
PerlMonks |
Re: Re: The darned Feb problem :)by zakb (Pilgrim) |
on Apr 24, 2002 at 16:00 UTC ( [id://161658]=note: print w/replies, xml ) | Need Help?? |
DaWolf, Imagine it's the 31st March. You subtract 1 from the month and get 31st February - which isn't a valid date. A similar problem occurs when it's any day in January. You subtract one from the month and get -1... Hope this helps!
In Section
Seekers of Perl Wisdom
|
|