I haven't dug very deep myself, but I've heard that tail recursion is a lost cause in Perl5. It's one of those things that we'll have to wait for Perl6 to get.
If you're intrested in internals, search around for Parret. It's what Perl6 will run on, but porting other languages to it is an explicit goal (unlike the Java VM), and supports some really cool stuff from functional programming (unlike .NET).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Tail Recursion in Perl
by hardburn
in thread Tail Recursion in Perl
by stvn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |