Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: understanding closures

by blokhead (Monsignor)
on Sep 23, 2005 at 12:36 UTC ( [id://494502]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        return sub {$count++}
    
  2. or download this
    sub count_maker {
        my $count = shift;
    
  3. or download this
    {
      my $count1; ## only one copy of $count1 ever created, so
    ...
    6 2 
    2 3 
    3 4
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found