in reply to HELP!!! PERL refuses to load Mechanize

It seems you didn't install WWW::Mechanize by using the cpan shell but manually. Also it seems to me as if you manually set your @INC directory to include some weird value:

/usr/local/lib/perl5/site_perl/5.8.8/WWW

My guess is that as soon as you change wherever you set that weird value to the below value, it will all work. But you should really, really use the cpan shell to install modules, especially if you are running Cygwin anyway.

/usr/local/lib/perl5/site_perl/5.8.8

Replies are listed 'Best First'.
Re^2: HELP!!! PERL refuses to load Mechanize
by bart (Canon) on Jul 12, 2007 at 11:05 UTC
    Damn right. Info for the OP and any other newbie struggling with this: when you do
    use WWW::Mechanize;
    Perl will internally translate this to a request to look in @INC for a subdirectory 'WWW' containing a text file 'Mechanize.pm'.

    So @INC should contain a list of roots of library trees, not a list of directories where the actual module source files are in — except when the module name is a top level name, i.e. it doesn't contain any "::" (or "'").

    A reply falls below the community's threshold of quality. You may see it by logging in.