Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Not equal, regular expressions

by frankus (Priest)
on Jun 25, 2002 at 16:06 UTC ( #177123=note: print w/ replies, xml ) Need Help??


in reply to Not equal, regular expressions

@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.

¤

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-06-25 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.