Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How do I validate a date?by plaid (Chaplain) |
on May 25, 2000 at 03:06 UTC ( [id://14688]=note: print w/replies, xml ) | Need Help?? |
There are a couple ways to do this. The best that
comes to mind is to grab a module for it (I prefer
Date::Calc personally). You could then do
something like
A non-modular way to accomplish this would be to create an array of month lengths, i.e. which would require one additional check for leap-year.
In Section
Seekers of Perl Wisdom
|
|