Hello,
Thank you for pointing out that I forgot the semi-colon after $ftp->ascii. The
program works fine now. I was having a problem with the file format being
altered. I am moving a file from VMS to Windows. First thing I learned is that
you have to use $ftp->binary AFTER you login! Also, I thought $ftp->ascii was
supposed to handle formatting problems. Turns out $ftp->binary is what works
for this application.
Thanks,
Kathy
use Net::FTP;
$ftp = Net::FTP->new("aaa.bbb.org", Debug =>0) or die "Cannot connect to
aaa.bbb.org: $@";
$ftp->login("login","passwd") or die "Cannot login", $ftp->message;
$ftp->binary;
$ftp->get("CWXTRCT_101905.TXT;1") or die "get failed ", $ftp->message;
$ftp->quit;
close OUT;
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.