|
|
| P is for Practical | |
| PerlMonks |
Re^8: disable functions if module not installedby almut (Canon) |
| on Nov 04, 2008 at 15:29 UTC ( #721423=note: print w/ replies, xml ) | Need Help?? |
|
Endless recursion would occur, if constant() is not being found - for whatever reason... Normally, the routine is provided by the XS code, but in case the wrong shared library is being loaded, or the symbol isn't exported properly, or something like that, the call to constant() would be routed to AUTOLOAD itself, leading to the next level of recursion... Quick proof of concept code:
I'm not sure why lepetitalbert's respective print statement doesn't print anything, but maybe it's just that STDOUT isn't connected to the terminal here, or some such...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||