Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Dynamic regexp from array values

by broquaint (Abbot)
on Feb 12, 2003 at 12:16 UTC ( [id://234659]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Dynamic regexp from array values
in thread Dynamic regexp from array values

Actually my $regex = qr(join '|', map "\Q$_\E", @vals) will optimize the pattern matching
Hrm, that's debatable, check out diotalevi's reply in meaning of /o in regexes.
HTH

_________
broquaint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found