Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-02-14 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (471 votes), past polls