Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@edittypes = qw(.htm .html .txt);
sub edit { $file = $q->param('select'); foreach $line (@edittypes) { if ($file !~ /$line/) { &inerror("You can only edit @edittypes"); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not equal, regular expressions
by RMGir (Prior) on Jun 25, 2002 at 15:43 UTC | |
|
Re: Not equal, regular expressions
by kvale (Monsignor) on Jun 25, 2002 at 15:46 UTC | |
|
Re: Not equal, regular expressions
by frankus (Priest) on Jun 25, 2002 at 16:06 UTC | |
|
Re: Not equal, regular expressions
by flounder99 (Friar) on Jun 25, 2002 at 16:30 UTC | |
|
(tye)Re: Not equal, regular expressions
by tye (Sage) on Jun 25, 2002 at 16:48 UTC |