Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Help with the concept of closures.

by broquaint (Abbot)
on Jul 06, 2003 at 00:02 UTC ( [id://271700]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $itemInBasket = shoppingList( "sweater" );
    
  2. or download this
    my $item = shift();
    
  3. or download this
    return sub
      {
        my $otherItem = shift();
        print "I need to buy a $item and a $otherItem.\n";
      };
    
  4. or download this
    &$itemInBasket( "pair of shoes" );
    
  5. or download this
    my $otherItem = shift();
    print "I need to buy a $item and a $otherItem.\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found