![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Taking reference to functionby targetsmart (Curate) |
on Apr 16, 2009 at 04:01 UTC ( [id://757833]=note: print w/replies, xml ) | Need Help?? |
Both have proper uses, generally it is good to use \&thefunc
but I will use 'funcname', when have a function template configured to be executed, where it can be easily changed, by adding a new function to the module and just adding a name to the configuration.
moreover the using 'funcname', does an additional lookup in the symbol table I reckon. Vivek -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
In Section
Seekers of Perl Wisdom
|
|