Thread

Posted on Fri Dec 22 01:34:26 2006 by tttttvvv
How to download Mechanize???
Hi, I am just started to learn Perl, and I need it to download several files from internet. I found Mechanize is what I need, but I have troubles to set it up on my computer. When I press the download link, it pompts me to download the file with the extention file, which I save in lib directory, but what should I do next? thank you
Direct Responses: 3877 | Write a response
Posted on Fri Dec 22 07:43:21 2006 by petdance in response to 3875
Re: How to download Mechanize???
Read the Perl FAQ:
$ perldoc -q install The easiest way is to have a module also named CPAN do it for you. This module comes with perl version 5.004 and later. $ perl -MCPAN -eshell cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support enabled cpan> install Some::Module To manually install the CPAN module, or any well-behaved CPAN module for that matter, follow these steps: 1 Unpack the source into a temporary area. 2 perl Makefile.PL 3 make 4 make test 5 make install If your version of perl is compiled without dynamic loading, then you just need to replace step 3 (make) with make perl and you will get a new perl binary with your extension linked in.
Please note that using Mech isn't going to be easy for a beginner to Perl. You should definitely read up some more about using modules.
Write a response