I'm sorry but this is just impossible: the complete package is over 50000 lines of code and extracting enough code to make you run this is not easy at all
It's impossible to extract the 10 lines that matter? If it's impossible for you to tell me what the problem is, then there's no hope of me fixing it.
As far as I understand the data is in a namespace related to the module (so Capability.pm)
No. They're (also) called packages, and %ntCapabilities isn't a package variable.
If perl would encounter use Capability once more there should be no need to load again the namespace of the module since it is already there.
When perl encounters require Capability; a second time, Perl doesn't execute the module again. use Module is a shortcut for a call to require and possibly a call to import, and they happen as soon as the statement is compiled.
In reply to Re^8: "use" modules inside modules
by ikegami
in thread "use" modules inside modules
by bogaertb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |