boat73 has asked for the wisdom of the Perl Monks concerning the following question:
my $host1='myhost'; my $user1="user"; my $pw1="pwd"; my $path = 'MY.FILE.NAME'; my $dataFile="MY.FILE.NAME\.csv"; my $mffile = '\'MY.FILE.NAME\''; #### Pull file off mainframe #### $ftp=Net::FTP->new($host1, Debug => 1); $ftp->login($user1,$pw1) or die "could not login to $host1"; $ftp->cwd($path) or die "could not cwd $path"; # change to incoming + directory $ftp->get($mffile) or die "could not get $file";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP seems to be corrupting my file
by jettero (Monsignor) on Mar 16, 2007 at 18:37 UTC | |
by boat73 (Scribe) on Mar 19, 2007 at 13:28 UTC | |
|
Re: Net::FTP seems to be corrupting my file
by roboticus (Chancellor) on Mar 19, 2007 at 01:50 UTC | |
by boat73 (Scribe) on Mar 19, 2007 at 13:49 UTC | |
by roboticus (Chancellor) on Mar 20, 2007 at 20:23 UTC |