Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 pondering the Monastery: (6)
As of 2014-09-02 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (20 votes), past polls