Change your code as follows
if ($expire !~m#^(1|2|3|4|5|6|7|8|9|10|11|12|13|14)$#) { die "Don't tamper with me!"; }
Update:: Remove doubel "|" to single
In reply to Re: IF Statement Testing
by gopalr
in thread IF Statement Testing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |