Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Pure Perl tail call optimization

by pdcawley (Hermit)
on Apr 24, 2002 at 14:13 UTC ( #161611=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub tail_factorial {
      my($total, $n) = @_;
    ...
        return tail_factorial($total * $n, $n - 1)
      }
    }
    
  2. or download this
    sub tail_factorial {
      my $total = shift; my $n = shift;
    ...
        goto &tail_factorial;
      }
    }
    
  3. or download this
    sub run_ops {
      my $self = shift;
    ...
        }
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://161611]
Approved by ariels
Front-paged by ariels
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2015-07-30 19:25 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 (273 votes), past polls