#!/usr/bin/perl -w
use WWW::Mechanize;
print $WWW::Mechanize::VERSION."\n";
1) exécuté à partir TextMate:Pourquoi je ne peux pas lancer Perl à partir de Textmate?
ne peut pas localiser WWW/Mechanize.pm dans @INC (@INC contient: /Applications/TextMate.app/Contents/SharedSupport/Bundles/Perl. tmbundle/Support /Bibliothèque/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0/Bibliothèque/Perl/5.10.0/darwin-thread-multi-2level /Bibliothèque/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0/Réseau/Bibliothèque/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0.) À /Users/xxx/Development/test.pl ligne 2 . BEGIN échoué - compilation avorté à la ligne /Users/xxx/Development/test.pl 2.
2) du terminal lance:
sh-3.2# perl test.pl<br>
1.64
Que dois-je faire?
Cela semble être des variables d'environnement. –