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


in reply to Re: private sub routine
in thread private sub routine

&$private_subroutine();

I'm a bit fuzzy on this, but doesn't &$private_subroutine() have subtle issues with @_ that $private_subroutine->() doesn't?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: private sub routine
by ikegami (Patriarch) on Sep 02, 2009 at 21:26 UTC
    No, not if you include the parens.
    $ perl -le'sub foo { print 0+@_ } @_=1..4; &foo; &foo();' 4 0