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

Re^2: The value of pattern match variable $&

by spiritway (Vicar)
on May 15, 2006 at 14:34 UTC ( #549516=note: print w/replies, xml ) Need Help??


in reply to Re: The value of pattern match variable $&
in thread The value of pattern match variable $&

IIRC, there is also a big performance hit, if any of these appear anywhere in your program.

  • Comment on Re^2: The value of pattern match variable $&

Replies are listed 'Best First'.
Re^3: The value of pattern match variable $&
by ikegami (Patriarch) on May 15, 2006 at 15:07 UTC
    Regexps without captures are faster than regexps with captures. Using any of those three variables causes all regexps in that interpreter instance (similiar to "in that process") to behave as if they had captures. That slows down all regexps without captures.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2022-05-17 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?