O
Omar Zakaria
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.
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.