initself has asked for the wisdom of the Perl Monks concerning the following question:
The data I am uploading consists of lines that look like this:my $ftp; my $host = "192.168.125.42"; $ftp = Net::FTP->new($host) or die "Cannot connect to host: $@"; $ftp->login("anonymous",'-anonymous@') or die "Cannot login ", $ftp->message; $ftp->ascii; $ftp->put($filename_tran) or die "put failed ", $ftp->message; $ftp->put($filename_occ) or die "put failed ", $ftp->message; $ftp->quit;
The last transfered line of this text file ends up looking like this:RI Anaheim Garden Grove 06-27-2006 UNKNOWN GROSS HOTEL SALES + 100.80M
even though the text file I am uploading has a complete line.RI Anaheim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP - incomplete file upload
by initself (Monk) on Jun 29, 2006 at 03:18 UTC | |
|
Re: Net::FTP - incomplete file upload
by muba (Priest) on Jun 29, 2006 at 03:14 UTC | |
|
Re: Net::FTP - incomplete file upload
by Anonymous Monk on Jun 29, 2006 at 05:04 UTC |