elusion has asked for the wisdom of the Perl Monks concerning the following question:
I got all of the files, but when I tried to open them, they were just bands of colors instead of the pictures that I wanted. If anyone has any ideas/solutions, I'd like to know where I went wrong.use Net::FTP; my $file; $ftp = Net::FTP->new("ftp.xoom.com", Debug => 0); $ftp->login("username",'password'); print "logged in\n"; $ftp->cwd("/img"); for($file = 384; $file<651 ; $file++) { if($file != 504) { $ftp->get("$file.jpg"); print "got $file.jpg\n"; } } $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Net::Ftp
by ColtsFoot (Chaplain) on Jul 26, 2000 at 16:02 UTC | |
|
RE: Using Net::Ftp
by eduardo (Curate) on Jul 26, 2000 at 16:54 UTC | |
by Anonymous Monk on Apr 25, 2001 at 01:37 UTC | |
|
RE: Using Net::Ftp
by mrmick (Curate) on Jul 26, 2000 at 18:23 UTC | |
|
Re: Using Net::Ftp
by c-era (Curate) on Jul 26, 2000 at 16:04 UTC |