in reply to Re^8: Passing argument by reference (for a scalar)(Unary Plus)
in thread Passing argument by reference (for a scalar)

The "usual notation" you cite has the disadvantage that it has to create, then destroy, a scope for each element of @list, which is an unnecessary performance hit.

Replies are listed 'Best First'.
Re^10: Passing argument by reference (for a scalar)(Unary Plus)
by LanX (Saint) on Sep 11, 2024 at 15:00 UTC
    Well those performance hits are often marginal.

    I'd be interested to see a benchmark justifying the disadvantages of higher reading entropy and confused co-maintainers.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery