Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: recursive anonymous subroutines

by stvn (Monsignor)
on Apr 06, 2006 at 21:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://541736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-02-06 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found