Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Why Closures?

by frankus (Priest)
on Apr 26, 2001 at 18:07 UTC ( #75798=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub function_called {
        my $calls = 0;
    
        return { return ++$callS }
    }
    
  2. or download this
    sub late_bound_sql {
    
    ...
    # Use them.
    &$lb1(2,4);  # Inserts x= 2, y= 4 to table foo.
    &$lb2("cuttlefish");  # Inserts a= cuttlefish, b= NULL to table bar
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-04 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls