Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: recursive anonymous subroutines

by stvn (Monsignor)
on Apr 06, 2006 at 21:04 UTC ( #541736=note: print w/replies, xml ) Need Help??


in reply to recursive anonymous subroutines

In Perl 6 you will be able to do this:

sub ($x) { return unless $x > 0; $x.say; &SUB.($x - 1); }

-stvn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541736]
help
Chatterbox?
[marto]: thanks

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-06-25 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?