Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2016-10-01 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (8 votes). Check out past polls.