in reply to Which modules does somescript.pl use?

i don't know of a specific module, but the modules you use in a script are listet in %INC.
try perl -MData::Dumper -e'print Dumper \%INC'

Replies are listed 'Best First'.
Re^2: Which modules does somescript.pl use?
by myuserid7 (Scribe) on Apr 14, 2005 at 10:17 UTC
    Can I get this to run before the script exits? I'm trying to debug a script, and don't know where it's failing, which is why I need the module.

      Sure, add something like:

      use Data::Dumper; END { print Dumper \%INC }
      at the top of the program file.

      /J\

        Great thanks!
      you can print out %INC at anny time you want to ;)
      modules that are importet by use are done in compile time, so they are in %INC right from the start. if you actualy use require, those modules should appear after you "required" them.
      The perl debugger is your friend (though not a very pretty one ;-)

      Check out perldebtut.(perldoc perldebtut)

      -Jim

Re^2: Which modules does somescript.pl use?
by myuserid7 (Scribe) on Apr 14, 2005 at 10:42 UTC
    Thanks!