in reply to Re: Syntax to call a subroutine from a reference
in thread Syntax to call a subroutine from a reference
$x->{subname}->() (as seen in the original code) also works fine. In fact, I would tend to prefer that over using the ampersand sigil.
|
|---|