If you want fancier applications of this pattern please refer to the links I gave.
Here's an even simpler implementation. sub f4{ return $_[0] }
Of course, as soon as the recursive sub starts doing anything remotely requiring recursion your 'pattern' falls apart like bad knitting.
In reply to Re: Syntactic sugar for tail call optimizations
by BrowserUk
in thread Syntactic sugar for tail call optimizations
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |