Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by AnomalousMonk (Chancellor)
on Dec 16, 2012 at 23:17 UTC ( #1009099=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "$_ = 'x77x888x1x';
    ...
      '1'
    966
    after: $1 is 'zonk'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009099]
help
Chatterbox?
[LanX]: It seems that PHP's official docs use "closure" and "anonymous function" interchangeably, even though their closures don't capture surrounding state without using the 'use' language construct.
LanX explains much cargo bla ...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2018-02-23 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (303 votes). Check out past polls.

    Notices?