Trying to implement mget since it is not a built in function in the NET::FTP library but I keep running into problems. This is what I have:
my($ftp,$pattern) = @_;
foreach my $file ($ftp->ls($pattern)) {
print "File Name: $file \n";
#$ftp->get($file) or warn $ftp->message;
}
The error I get is "Can't call method "ls" on an undefined value" and it refers to the $pattern in the second line. I'm running perl on a W2K box and I'm trying to FTP to another W2K box.
Start Free Trial