@edittypes = qw( htm html txt);
$regex = join('|', map{"\\.$_" }@edittypes);
$_ = $q->param('select');
inerror("You can only edit @edittypes") unless /$regex/i;
Using & will disable any proto you've got on a function.
--
Brother Frankus.
¤
In reply to Re: Not equal, regular expressions
by frankus
in thread Not equal, regular expressions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |