in reply to Subroutine References
More on point to your original question, here's the relevant text from perldoc perlsub:
The prototype affects only interpretation of new-style calls to the function, where new-style is defined as not using the "&" character. In other words, if you call it like a built-in function, then it behaves like a built- in function. If you call it like an old-fashioned subroutine, then it behaves like an old-fashioned subroutine. It naturally falls out from this rule that prototypes have no influence on subroutine references like \&foo or on indirect subroutine calls like &{$subref} or $subref->().
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Subroutine References
by Ninthwave (Chaplain) on Dec 07, 2003 at 22:47 UTC |