Ok. I've been trying to do
Do something
if defined &{"$package::$funcName"};
and it's not working. Here's the situation:
- In package A, I've got a function foo() which defines the subroutines, supposedly as needed.
- In package B, which inherits (at some distance) from package A, I've got the definitions of various subroutines and the call to foo().
For some reason, the
defined check isn't catching that the functions are supposed to be defined elsewhere. Why is that?
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.