Print out modules used during runtime?



Hello, all. I was wondering if there's a way, without downloading any
special modules, or packages, to have a perl script print out the list
of packages or modules it imported (i.e. anything I "use"'d or
"require"'d). The script is actually compiled to an .exe, so it can't
open itself and search for "use". Any ideas? I've tried fiddling with
package namespaces and reference tables, but I can't seem to find where
the information is stored, orif its even there.

As an example, I'd like to know how to get the script below to print out
"foo/bar.pm, bar/foo.pm" or something along those lines (assuming, of
course, those modules exist):

__BEGIN__

use foo::bar;
use bar::foo;

#Insert awesome perl program here

....

__END__


I'd appreciate any help I could get in the matter.

--
Omar Zakaria: crono@cc~
- "Ne cede malis, sed sempter contra audentior ito." -Virgil
- "All things are transitory; this too, shall pass." -Buddha
.



Relevant Pages

  • Re: Print out modules used during runtime?
    ... special modules, or packages, to have a perl script print out the list ...
    (comp.lang.perl.misc)
  • Re: libicui18n.so.36 not found, required by "evolution"
    ... It will only fetch programs that need updating, ... Later this day I will add some debugging functionality to the script and send that version to you, if you are willing to spend your time helping me finding this problem. ... And indeed pkg_libchk is by far the best solution, if I was to update every package that depended on icu I would have to update 239 packages which discouraged me right away, by running pkg_libchk the amount of packages to be updated was reduced to 71, wrote a quick script and left it running overnight and those packages got updated and by god I don't have any more problems with libicui18n.so.38. ... And until then you already have a description for all new commands. ...
    (freebsd-questions)
  • Re: SMS upgrade Side-By-Side 2.0 to 2003
    ... Being able to migrate queries and packages can prove to be valuable though. ... I still don't have a package import script because most of the time you ... MVP Windows Server System - SMS ...
    (microsoft.public.sms.setup)
  • Re: [opensuse] Local cache of updates, installed programs in openSUSE
    ... don't have the same package config, I created a "Generic" openSuSE repository ... script to separate all the files by architecture and then upload to the server ... server instead of from the internet. ... and that holds updated packages for rpms of all architectures. ...
    (SuSE)
  • Re: Using a package like PyInstaller
    ... create exe files that basically have your py script and a small py ... installed on a system to execute a py script. ... I am being advised that python ... and these types of packages and am not too sure how dumb a question this ...
    (comp.lang.python)