in reply to Call subroutine by reference ?

sure &$ref(@args) or $ref->(@args)!

some google results led me here How to call a sub-routine ref

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Call subroutine by reference ?
by JockoHelios (Scribe) on May 31, 2013 at 16:51 UTC
    Thanks for the link to that node, Rolf. Good discussion there. Not sure which syntax I'll go with yet, I'll have to try them out to see which fits best for me.

    And I got a chuckle out of a couple of really amusing sigs there :)

    Dyslexics Untie !!!
      your welcome! =)

      I normally prefer the arrow dereference, much easier syntax in nested structures like dispatch tables.

      Exceptions are calls w/o arguments (much shorter) or functions with prototypes which insist in a leading ampersand.

      Cheers Rolf

      ( addicted to the Perl Programming Language)