Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: 'grouping' substrings?

by ikegami (Patriarch)
on Feb 01, 2006 at 16:52 UTC ( [id://527112]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 'grouping' substrings?
in thread 'grouping' substrings?

That's not exactly true. $& is only inefficient if you have another regexp in your program which doesn't capture.

However, it's use is discouraged, since captures can perform the same task without the "effect at a distance" of $&.

In this case, just replace $& with $1, and you're set.

Log In?
Username:
Password:

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

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

    No recent polls found