in reply to Taking reference to function
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.
In which case in the main program, i read the configuration and just check whether that function exists using 'can', and execute it (if 'use strict' is in action, i will use 'no strict "refs"' inside that particular block so it won't throw error).
moreover the using 'funcname', does an additional lookup in the symbol table I reckon.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Taking reference to function
by GrandFather (Saint) on Apr 17, 2009 at 04:23 UTC | |
|
Re^2: Taking reference to function
by SFLEX (Chaplain) on Apr 16, 2009 at 10:15 UTC | |
by tilly (Archbishop) on Apr 16, 2009 at 14:51 UTC | |
|