Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: private sub routine

by QM (Parson)
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


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

Quantum Mechanics: The dreams stuff is made of

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://793028]
[Corion]: Maybe I should also write a curator for HN or simply not read it anymore, like you do.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-07-24 13:30 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (354 votes). Check out past polls.