Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Returning regexp pattern that was used to match

by Ven'Tatsu (Deacon)
on May 03, 2004 at 14:58 UTC ( #350032=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our $matched_key; #global to hold the key that matched, off the top of
    + my head I don't think a 'my' variable would work.
    for (keys($$args)) {
        $string .= "$_(?{$matched_key = $_})|";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://350032]
help
Chatterbox?
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-11-23 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (343 votes). Check out past polls.

    Notices?