Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by samy_kumar (Scribe)
on Feb 18, 2005 at 13:08 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-08-18 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?