http://www.perlmonks.org?node_id=11125899


in reply to Re: why avoid & on function call (updated x 3)
in thread why avoid & on function call

defined &func, exists &func, and goto &func (distinct from the troublesome goto LABEL) are some other examples when you would use the ampersand to refer to a named function. -Dan
  • Comment on Re^2: why avoid & on function call (updated x 3)

Replies are listed 'Best First'.
Re^3: why avoid & on function call (updated x 3)
by LanX (Saint) on Dec 28, 2020 at 20:14 UTC
    > are some other examples when you would use the ampersand to refer to a named function.

    goto was already mentioned :)

    > > ²) some built-ins require & with named subs as arguments, like goto, map , grep , sort

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