Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex combining /(foo|bar)/ slower than using foreach (/foo/,/bar/) ???

by samy_kumar (Scribe)
on Feb 18, 2005 at 13:08 UTC ( [id://432311]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $regex               = qr /(?:$regexstr)/;
    
  2. or download this
        foreach my $stringlength (100,1000,10000,100000)
    
  3. or download this
        my $regex               = qr /(?:$regexstr)/o;
    
  4. or download this
        my $regex               = qr /(?:$regexstr)/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found