in reply to Re: help with "symbol lookup error" message
in thread help with "symbol lookup error" message
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
|
|---|