Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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


Comment on Re: recursive anonymous subroutines
Download Code

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 web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-04 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls