Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by moritz (Cardinal)
on Dec 18, 2012 at 14:22 UTC ( #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
Node Status?
node history
Node Type: note [id://1009374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-12-27 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls