Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

recursive anonymous subroutines

by Daryn (Sexton)
on Apr 06, 2006 at 19:56 UTC ( #541711=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (sub {... magic(...) ... )->(args)
    
  2. or download this
    use strict;
    {
        my $coderef;
        ($coderef = sub { ... $coderef->(...) ...)->(args);
    }
    
  3. or download this
    use strict; 
    
    ...
        my $coderef;
        ($coderef = sub {return unless $_[0] > 0; print "$_[0]\n"; $codere
    +f->($_[0]-1)})->(4);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://541711]
Approved by ww
Front-paged by thewalledcity
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-12-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls