Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 rifling through the Monastery: (7)
As of 2014-09-23 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls