F
Fei Liu
Hi group, is it possible to list all loaded modules of a perl program?
For example, the perl application could have a very complicated
hierarchy of module structure where each module load different modules
on their own:
i.e
package main
use A;
use C;
package A
use B;
package C
use D;
package B
use BA;
use BB;
package D;
use DA;
use DB;
use DC;
package DA
use DAA;
use DAB;
etc, etc.
Now is it possible within the main program to list all the preloaded
modules via use statement? It's possible to do this by using a parser
to recursively parse through modules with a predefined level, but
idealy a in program complete list could be better.
Please let me know if there is an existing solution for this problem,
thanks!
Fei
For example, the perl application could have a very complicated
hierarchy of module structure where each module load different modules
on their own:
i.e
package main
use A;
use C;
package A
use B;
package C
use D;
package B
use BA;
use BB;
package D;
use DA;
use DB;
use DC;
package DA
use DAA;
use DAB;
etc, etc.
Now is it possible within the main program to list all the preloaded
modules via use statement? It's possible to do this by using a parser
to recursively parse through modules with a predefined level, but
idealy a in program complete list could be better.
Please let me know if there is an existing solution for this problem,
thanks!
Fei