But there's also a problem with your date math: Assuming that you want to know if the day of the month is odd or even, use Perl's localtime function or, for advanced functionality, DateTime. Unless you want to deal with leap years, months with 28, 30, 31 days etc yourself.
In reply to Re: odd or even day?
by saintmike
in thread odd or even day?
by jondkent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |