Steven Sun's Blog

A dream land of peace.

When Can We Omit the Ampersand While Calling a Subroutine

If the compiler sees the subroutine definition before invocation, or if Perl can tell from the syntax that it’s a subroutine call, the subroutine can be called without an ampersand, just like a built-in function.