Re: Listing all modules used by program?
- From: "nobull@xxxxxxxx" <nobull67@xxxxxxxxx>
- Date: 25 Feb 2006 02:47:37 -0800
Pat Deegan wrote:
Hi,
On Sat, 18 Feb 2006 23:01:07 -0500, harryfmudd [AT] comcast [DOT] net
wrote:
Pat Deegan wrote:
Greetings all,
I'm trying to figure out how to automatically list all the modules used by
a particular program.
If by "used" you mean as in the Perl built-in "use", will this do it for
you?
foreach (sort keys %INC) {print "$_\n"}
Ah. Well I was originally looking for something to executed without
modifying the program (such as a command line arg passed to perl itself)
but this is a minor mod and it works quite well.
You can place the command in an END{} block in another module then load
the latter with the -M command line switch.
.
- References:
- Listing all modules used by program?
- From: Pat Deegan
- Re: Listing all modules used by program?
- From: harryfmudd [AT] comcast [DOT] net
- Re: Listing all modules used by program?
- From: Pat Deegan
- Listing all modules used by program?
- Prev by Date: Re: Unable to connect a website using LWP
- Next by Date: How to read an IFO file ?
- Previous by thread: Re: Listing all modules used by program?
- Next by thread: Re: Listing all modules used by program?
- Index(es):
Relevant Pages
|
|