Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Creating Nested Functions

by tilly (Archbishop)
on Jul 10, 2008 at 21:46 UTC ( #696819=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub outer {
      my $helper;
    ...
      my $delay_cleanup = on_release {$helper = undef};
      $helper->(@_);
    }
    
  2. or download this
    sub outer {
      my @helper;
    ...
      };
      $helper[0]->(@_);
    }
    
  3. or download this
    {
      my %in_node;
    ...
        ...
      }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2016-02-10 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (354 votes), past polls