Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: private sub routine

by QM (Vicar)
on Sep 02, 2009 at 20:31 UTC ( #793028=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: private sub routine
Select or Download Code
Replies are listed 'Best First'.
Re^3: private sub routine
by ikegami (Pope) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://793028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-30 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls