@edittypes = qw(.htm .html .txt);
sub edit { $file = $q->param('select'); foreach $line (@edittypes) { if ($file !~ /$line/) { &inerror("You can only edit @edittypes"); } } }
In reply to Not equal, regular expressions by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |