slayedbylucifer has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I am newbie, so plese bear with me. I am running below code but it does not download "robots.txt"
use strict; use Net::FTP; my $ftpobj = Net::FTP-> new("ftp.cpan.org"); $ftpobj -> login ("anonymous", "nowhere"); $ftpobj -> cwd ("/pub"); $ftpobj -> get ("robots.txt"); $ftpobj -> quit;
The file is present on ftp.cpan.org. My scripts runs fine as I get "0" when I run "echo $?, however, it does not download the file. could you tell me where I am going wrong.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP module not able to download file
by Khen1950fx (Canon) on Mar 01, 2012 at 21:23 UTC | |
|
Re: Net::FTP module not able to download file
by JavaFan (Canon) on Mar 01, 2012 at 21:14 UTC |