Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chanting in the Monastery: (3)
As of 2014-09-23 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls