Instead of:
if ($start_month == "04"||"06"||"09"||"11"){
You probably really want:
if ($start_month eq "04" || $start_month eq "06" || $start_month eq "0 +9" || $start_month eq "11"){
or even (using grep and "eq" for string comparison):
if (grep {$start_month eq $_ } qw(04 06 09 11)) {
or a hash.
But you probably really should use a CPAN module for this.
In reply to Re: Changing dates
by toolic
in thread Changing dates
by ITmajor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |