in reply to Accessing list of package names in a module
Just one remark for better understanding: Each imported package is listed in the namespace symbol table of the importing package.
so by scanning the namespaces starting from the root "main" you should find the desired infos. Packages are keys ending with a "::".
you will see entries like 'Data::' => *{'::Data::'},use Data::Dumper; print Dumper \%:: ;
so recursively you can get all the infos you want.
UPDATE:
Note:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing list of package names in a module
by FreakyGreenLeaky (Sexton) on Nov 20, 2008 at 10:43 UTC | |
by moritz (Cardinal) on Nov 20, 2008 at 16:17 UTC |