in reply to Re: Syntax to call a subroutine from a reference
in thread Syntax to call a subroutine from a reference

Howdy!

$x->{subname}->() (as seen in the original code) also works fine. In fact, I would tend to prefer that over using the ampersand sigil.

yours,
Michael
  • Comment on Re^2: Syntax to call a subroutine from a reference