Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 scrutinizing the Monastery: (6)
As of 2014-07-11 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls