Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Pure Perl tail call optimization

by Limbic~Region (Chancellor)
on Mar 05, 2004 at 18:12 UTC ( #334306=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print tail_factorial(1, 8);
    
  2. or download this
    sub tail_factorial {
        my ($n, $total) = @_;
    ...
        @_ = ($n - 1, $total * $n);
        goto &tail_factorial;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://334306]
help
Chatterbox?
[holli]: or "ignorant bricks" (that is not a typo)
[choroba]: holli The money wasn't bad :-)
[choroba]: Discipulus Try changing the URL constants to something else

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2017-10-24 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (289 votes). Check out past polls.

    Notices?