if ($expire < 1 || 14 < $expire || int $expire != $expire) { die "Don't tamper with me!"; } #### my %check; undef @check{1..14}; if (! exists $check{$expire}) { die "Don't tamper with me!"; } #### if ($expire !~ /^(?:[1-9]|1[0-4])$/) { die "Don't tamper with me!"; } #### use Quantum::Superpositions; if ($expire != any(1..14)) { die "Don't tamper with me!"; }