If you want to check which modules have been loaded by your script (and where they were found), just add the following line at the end of your script: for(keys %INC) { print "$_: $INC{$_}\n" };

I recommend using perldebug, which is more clear and simple:
perl -MFile::copy -de0 DB<1> M 'Carp.pm' => '1.50 from C:/Strawberry/perl/lib/Carp.pm' 'Config.pm' => '5.032001 from C:/Strawberry/perl/lib/Config.pm' 'Config_git.pl' => 'C:/Strawberry/perl/lib/Config_git.pl' 'Config_heavy.pl' => 'C:/Strawberry/perl/lib/Config_heavy.pl' 'Cwd.pm' => '3.78 from C:/Strawberry/perl/lib/Cwd.pm' 'DynaLoader.pm' => '1.47_01 from C:/Strawberry/perl/lib/DynaLoader.pm' 'Exporter.pm' => '5.74 from C:/Strawberry/perl/lib/Exporter.pm' 'File/Spec.pm' => '3.78 from C:/Strawberry/perl/lib/File/Spec.pm' 'File/Spec/Unix.pm' => '3.78 from C:/Strawberry/perl/lib/File/Spec/Uni +x.pm' 'File/Spec/Win32.pm' => '3.79 from C:/Strawberry/perl/lib/File/Spec/Wi +n32.pm' 'File/copy.pm' => 'C:/Strawberry/perl/lib/File/copy.pm' 'IO.pm' => '1.45 from C:/Strawberry/perl/lib/IO.pm' 'IO/Handle.pm' => '1.45 from C:/Strawberry/perl/lib/IO/Handle.pm' 'List/Util.pm' => '1.55 from C:/Strawberry/perl/lib/List/Util.pm' 'Scalar/Util.pm' => '1.55 from C:/Strawberry/perl/lib/Scalar/Util.pm' 'SelectSaver.pm' => '1.02 from C:/Strawberry/perl/lib/SelectSaver.pm' 'SelfLoader.pm' => '1.26 from C:/Strawberry/perl/lib/SelfLoader.pm' 'Symbol.pm' => '1.08 from C:/Strawberry/perl/lib/Symbol.pm' 'Term/Cap.pm' => '1.17 from C:/Strawberry/perl/lib/Term/Cap.pm' 'Term/ReadKey.pm' => '2.38 from C:/Strawberry/perl/vendor/lib/Term/Rea +dKey.pm' 'Term/ReadLine.pm' => '1.17 from C:/Strawberry/perl/lib/Term/ReadLine. +pm' 'Term/ReadLine/Perl.pm' => '1.0303 from C:/Strawberry/perl/vendor/lib/ +Term/ReadLine/Perl.pm' 'Term/ReadLine/readline.pm' => '1.0303 from C:/Strawberry/perl/vendor/ +lib/Term/ReadLine/readline.pm' 'Time/HiRes.pm' => '1.9764 from C:/Strawberry/perl/lib/Time/HiRes.pm' 'Win32.pm' => '0.54 from C:/Strawberry/perl/lib/Win32.pm' 'XSLoader.pm' => '0.30 from C:/Strawberry/perl/lib/XSLoader.pm' 'constant.pm' => '1.33 from C:/Strawberry/perl/lib/constant.pm' 'feature.pm' => '1.58 from C:/Strawberry/perl/lib/feature.pm' 'overload.pm' => '1.31 from C:/Strawberry/perl/lib/overload.pm' 'overloading.pm' => '0.02 from C:/Strawberry/perl/lib/overloading.pm' 'perl5db.pl' => '1.57 from C:/Strawberry/perl/lib/perl5db.pl' 'strict.pm' => '1.11 from C:/Strawberry/perl/lib/strict.pm' 'vars.pm' => '1.05 from C:/Strawberry/perl/lib/vars.pm' 'warnings.pm' => '1.47 from C:/Strawberry/perl/lib/warnings.pm' 'warnings/register.pm' => '1.04 from C:/Strawberry/perl/lib/warnings/r +egister.pm'




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


In reply to Re^2: help with "symbol lookup error" message by xiaoyafeng
in thread help with "symbol lookup error" message by Special_K

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.