Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

'Dynamic scoping' of capture variables ($1, $2, etc.)

by AnomalousMonk (Canon)
on Dec 16, 2012 at 20:03 UTC ( #1009091=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "$_ = 'x55x666x7777x1x';
    ...
      $_ is 'xxxxx'  $1 is '1'
    4
    after: $1 is undefined
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1009091]
Approved by moritz
Front-paged by LanX
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-12-06 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.