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:

Access this course and 1400+ top-rated courses and projects.