Re: ftp in ascii mode

2007-10-20 Thread Matthew Whipple
Gunnar Hjalmarsson wrote: > Gunnar Hjalmarsson wrote: >> Net::FTP uses ascii mode by default, which means that the line >> endings were converted also when you transferred the file back to >> your local machine. Consequently, those files should not be identical. > > Correction: They _should_ be ide

Re: ftp in ascii mode

2007-10-19 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: Net::FTP uses ascii mode by default, which means that the line endings were converted also when you transferred the file back to your local machine. Consequently, those files should not be identical. Correction: They _should_ be identical. Sorry! No, I can't tell wha

Re: ftp in ascii mode

2007-10-19 Thread Gunnar Hjalmarsson
Rhea Yakob wrote: I was trying to put some files to a remote machine (unix) from the local (win) machine using a perl script in ascii mode. $ftp->ascii(); $ftp->put($file1,$file11) or die "put failed \n"; Suppose you used Net::FTP. You should have told us that. Later on when I try to get bac

ftp in ascii mode

2007-10-19 Thread Rhea Yakob
I was trying to put some files to a remote machine (unix) from the local (win) machine using a perl script in ascii mode. $ftp->ascii(); $ftp->put($file1,$file11) or die "put failed \n"; Later on when I try to get back the same file with a new name to my local machine $ftp->get($file11,$file22)