Tailcall Optimization

Learn how to do tailcall optimization in Perl.

Tailcalls

A tailcall occurs when the last expression within a function is a call to another function. The outer function’s return value becomes the inner function’s return value:

Get hands-on with 1200+ tech skills courses.