[Ubuntu / PERL ]Problem installing WWW::Mechanize mod

Hello everyone,

I've got some problem intalling a perl module.
The installation is well done as you can see below.

gueg@ux31:~$ sudo apt-get install libwww-mechanize-perl
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances       
Lecture des informations d'�tat... Fait
Les paquets suivants ont �t� install�s automatiquement et ne sont plus n�cessaires :
[...]
Les NOUVEAUX paquets suivants seront install�s :
  libwww-mechanize-perl
0 mis � jour, 1 nouvellement install�s, 0 � enlever et 0 non mis � jour.
Il est n�cessaire de prendre 0 o/91,8 ko dans les archives.
Apr�s cette op�ration, 231 ko d'espace disque suppl�mentaires seront utilis�s.
S�lection du paquet libwww-mechanize-perl pr�c�demment d�s�lectionn�.
(Lecture de la base de donn�es... 201284 fichiers et r�pertoires d�j� install�s.)
Pr�paration du d�compactage de .../libwww-mechanize-perl_1.73-1_all.deb ...
D�compactage de libwww-mechanize-perl (1.73-1) ...
Traitement d�clench� pour  man-db (2.6.7.1-1ubuntu1) ...
Param�trage de libwww-mechanize-perl (1.73-1) ...

But when I try the module, I've got an error message on the screen.. Previous module have been test well..

gueg@ux31:~$ perl -e 'use WWW::mechanize'
Can't locate WWW/mechanize.pm in @INC (you may need to install the WWW::mechanize module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

If you have any idea where this error come from, I'll be gratefull !!

Thanks

Perl looks for installed modules in the paths defined in @INC . So you need to figure out if apt-get install installed WWW:Mechanize in one of these paths. You may also try installing using CPAN.

Hello, I've found the module here :

gueg@ux31:~$ ls /usr/share/perl5
Archive     Date          Digest    File  Lintian      Mail    Text
Authen      Debconf       Dpkg      Font  Log          Module  Time
autodie     Debian        Dpkg.pm   HTML  LWP          Net     URI
autodie.pm  DebianNet.pm  Email     HTTP  lwpcook.pod  Parse   URI.pm
Class       Devel         Encode    IO    LWP.pm       Pod     WWW
Crypt       dialog.pl     Fatal.pm  IPC   lwptut.pod   Term    YAML

gueg@ux31:~$ ls /usr/share/perl5/WWW/
Mechanize  Mechanize.pm  RobotRules  RobotRules.pm

Where do I move it ?

Actually @INC has one of the path as /usr/share/perl5

Just observed that it's WWW::Mechanize with an upper-case 'M' and you're calling it as WWW:mechanize with a lower-case 'm'.

Effectively, I don't encounter errors with this orthography.

gueg@ux31:~/prg$ perl -e 'use WWW::Mechanize'

But now I realize I have coding errors haha
Thanks !