Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Creating Nested Functions

by tilly (Archbishop)
on Jul 10, 2008 at 21:46 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://696819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found