Perl: the Markov chain saw | |
PerlMonks |
Re: Ampersands and sub speedby wazoox (Prior) |
on Oct 14, 2005 at 21:13 UTC ( [id://500370]=note: print w/replies, xml ) | Need Help?? |
I suppose this is because the ampersand identifies the token as a function name, and so Perl doesn't have to spend any time disambiguating it
No, I don't think it to be the reason. AFAIK the difference lies in the fact that object methods can be overloaded, or inherited, and this is managed at run time, while direct function call is managed thru the symbol table built directly at compile time.
In Section
Meditations
|
|