$lastDay = lastDayOfMonth($month); #returns a number indicating last d +ay ... sub lastDayOfMonth { my $month=shift; <sanity check here> return 29 if($month==2 and isLeapYear($currYear)); <and so on> }
In reply to Re: Date Handling in Perl
by cheekuperl
in thread Date Handling in Perl
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |