Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: 'Dynamic scoping' of capture variables ($1, $2, etc.)

by moritz (Cardinal)
on Dec 18, 2012 at 14:22 UTC ( [id://1009374]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub R {
       printf qq{before: \$_ is '$_'};
    ...
    after: $_ is 'a81b2d34c1' $1 is '1' 
    after: $_ is 'a81b2d34c1' $1 is '1' 
    after: $_ is 'a81b2d34c1' $1 is '1'
    

Log In?
Username:
Password:

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

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

    No recent polls found