Hi, How can I use net::ftp simply to read a file on a remote server and process the information in that file.
I can transfer the file to my server, open it and then process it, but I am looking for a means to bypass the step of putting the file on my server and then deleting it afterwards.
#!/usr/bin/perl -w
use strict;
use Net::FTP;
my $home="yada.com";
my $username="user";
my $password="pwd";
my $filename='file.txt';
my $newfile = "extract.txt";
my $ftp = Net::FTP->new("$home") or die "Can't connect: $@\n";
$ftp->login($username, $password) or die "Couldn't login\n";
$ftp->get($filename, $newfile) or die "Couldn't get
+ $filename\n";