Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Can we make $& better?

by ferreira (Chaplain)
on Sep 06, 2007 at 19:59 UTC ( [id://637521]=note: print w/replies, xml ) Need Help??


in reply to Can we make $& better?

You may use today the feature mentioned in Re: Can we make $& better? (no need with $^MATCH). Even with older Perls, there is Regexp::MatchContext by TheDamian. Surely, it must be the inspiration for the 5.10 feature which is probably faster because introduced to the Perl core itself.

Replies are listed 'Best First'.
Re^2: Can we make $& better?
by demerphq (Chancellor) on Sep 12, 2007 at 18:07 UTC

    Actually this post is the first time ive even heard of Regexp::MatchContext so no it wasnt in any way the inspiration for ${^MATCH} and friends.

    And actually its totally fluke that both use 'p' as the new flag, originally it was 'k' in the core implementation, which was changed to 'p' (for preserve) later on because another TheDamian module uses 'k' for special purposes.

    ---
    $world=~s/war/peace/g

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found