Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
and the sunlight beams...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-11-19 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (281 votes). Check out past polls.

    Notices?