Hi,
I upgraded Perl 5.8 in Unix to Perl 5.10.0
I am using WWW::Mechanize package in my scripting.
But I am not able to locate WWW::Mechanize in Perl.
Can any help me ???

Dani AI

Generated

upgraded the interpreter, which commonly breaks access to previously installed CPAN modules because the new Perl uses different library paths. and are on the right track: first confirm whether the current Perl can see WWW::Mechanize, then reinstall into the Perl you are running.

Quick checks (run with the Perl you intend to use):

perldoc -l WWW::Mechanize
perl -V    # inspect @INC paths
perl -MWWW::Mechanize -e1    # returns success if the module loads

If the module is not found, install it for that Perl. Common options:

  • Use the system package manager (binary packages exist on many Linux distros).
  • Use the CPAN client: cpan WWW::Mechanize or cpanm WWW::Mechanize (cpanm is lightweight).
  • Use a per-user install with local::lib if root access is not available.

Avoid copying .pm files between different Perl versions; reinstalling ensures XS modules are rebuilt for the current Perl ABI. If building from CPAN fails, ensure basic build tools are installed (make/gcc or build-essential). Reference material: the module documentation on MetaCPAN (WWW::Mechanize) and the local::lib guide (local::lib).

Recommended Answers

All 2 Replies

listout all installed module in ur computer
$ instmodsh <enter> press l
if that module is not installed , then install it ,,,,,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.