in reply to Re: IF Statement Testing
in thread IF Statement Testing

Except it should be single "|"s in your regexp, not "||"s

But why use a regexp at all?

if ($expire < 1 || $expire > 14) { die "Don't tamper with me!"; }