Sigh. Typo upon typo -- thanks for catching the error :) Just ran the above...#/usr/bin/perl -w use strict; use warnings; ########################################################### # # rpasafe.pl -- robot propagator attempt # ########################################################### use Net::FTP; my $host = 'ftp.ftpserver.com'; my $u = 'user'; my $p = 'pass'; my $ftp; unless ($ftp = Net::FTP->new($host)) { die "No FTP for you!\n\n"; } $ftp->login($u, $p); $ftp->binary; my @lines = $ftp->dir(); print join("\n", @lines), "\n";
Again, it seems that nothing's being returned as the main directory.C:\WINDOWS\Profiles\Gregory\Desktop\LLPSV>perl rpasafe.pl C:\WINDOWS\Profiles\Gregory\Desktop\LLPSV>
Any ideas? The FTP server definately exists and works -- I've logged in with an FTP client.
-----------------------
You are what you think.
In reply to Re: Re: Net::FTP Woes
by chaoticset
in thread Net::FTP Woes
by chaoticset
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |