Print out modules used during runtime?
- From: Omar Zakaria <crono@xxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 15:48:41 -0400
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
.
- Follow-Ups:
- Re: Print out modules used during runtime?
- From: Paul Lalli
- Re: Print out modules used during runtime?
- Prev by Date: Re: newby question : parse xml file
- Next by Date: Re: Print out modules used during runtime?
- Previous by thread: Re: newby question : parse xml file
- Next by thread: Re: Print out modules used during runtime?
- Index(es):
Relevant Pages
|