Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to access a variable inside subroutine?

by perlfan (Vicar)
on Sep 05, 2020 at 20:12 UTC ( [id://11121388]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ADD_COUNTER_CLOSURE:
    {
    ...
    counter();
    $add = add;
    print qq{$add\n};
    
  2. or download this
    0
    125250
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found