Re: Listing all modules used by program?



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.

.



Relevant Pages

  • Re: C2960 config - What do the commands do
    ... To enable visible sequence numbering of system logging messages, use the service sequence-numbers command in global configuration mode. ... Configure the system to automatically switch to summer time. ... This sybnet has the same network address what main network (the subnetted one) but longer subnet mask ... For chassis with 64 MAC addresses, STP uses the extended system ID plus a MAC address to make the bridge ID unique for each VLAN. ...
    (comp.dcom.sys.cisco)
  • Re: proposal: reswitch
    ... > which levels of loops and/or switches and/or ... socket -server command ?-myaddr addr? ... You've got the quick-exit (break, no string), the fall-through to next ... -switch option), then it'd be the nth switch. ...
    (comp.lang.tcl)
  • voice activated Windows shortcuts
    ... It works if the command pause is set to .1 seconds and the ... dictation while in Command Mode and AFAIK there's no hotkey to switch ... switching between windows does not ... back space (click, Backspace, Space) ...
    (comp.speech.research)
  • voice activated Windows shortcuts
    ... It works if the command pause is set to .1 seconds and the ... dictation while in Command Mode and AFAIK there's no hotkey to switch ... switching between windows does not ... back space (click, Backspace, Space) ...
    (comp.speech.users)
  • Re: expect question
    ... request to block this command without having to spend excessive time coading ... these devices typically have a very complex shell / command line interface ... code releases causes the switch to roll over [service affecting to ... I'll look at these example terminal emulators in more detail and decide ...
    (comp.lang.tcl)