Do you know where your variables are? | |
PerlMonks |
Re^3: Is it possible to create a sub exclusive to a sub? (nasty memory leak)by TedPride (Priest) |
on Sep 19, 2004 at 03:49 UTC ( [id://392102]=note: print w/replies, xml ) | Need Help?? |
Aside from the obvious fact that you don't need a recursive routine to do a fibonacci sequence, I'm still wondering why anonymous subs would ever be preferable to named subs. Is there a measurable speed increase when calling a sub through a pointer rather than a name? Why not just do:
(for the sake of simplicity, this has been coded so that the nth term IS the nth term)
1) 1
In Section
Seekers of Perl Wisdom
|
|