I am trying to assign a listing of files within an ftp directory to an array. When I try this, all get for the array is the following:
C:\twc\perl>perl ftp_t.pl
ARRAY(0x1c5a4d8)
My code is as follows:
use Net::FTP;
$ftp = Net::FTP->new("rousest1", Debug => 0)|| die "Could not open<1>: $!\n";
$ftp->login('anonymous','qa@qa.com')|| die "Could not open <2>: $!\n";
@list1 = $ftp->ls || die "LS Failed: $!\n";
print $list1[0];
$ftp->get("MyImage.jpg"
|| die "GET Failed: $!\n";
$ftp->quit;
The file transfer works fine. According tothe documantion DIR or LS is supposed to return a listing of files.
What am I doing wrong.
Thanks
Plotzer
C:\twc\perl>perl ftp_t.pl
ARRAY(0x1c5a4d8)
My code is as follows:
use Net::FTP;
$ftp = Net::FTP->new("rousest1", Debug => 0)|| die "Could not open<1>: $!\n";
$ftp->login('anonymous','qa@qa.com')|| die "Could not open <2>: $!\n";
@list1 = $ftp->ls || die "LS Failed: $!\n";
print $list1[0];
$ftp->get("MyImage.jpg"
$ftp->quit;
The file transfer works fine. According tothe documantion DIR or LS is supposed to return a listing of files.
What am I doing wrong.
Thanks
Plotzer