in reply to Re^3: convert files unix2dos using perl script
in thread convert files unix2dos using perl script

If I try
$ftp->put(\*TR,$File);
220 ttn208 Microsoft FTP Service (Version 5.0).
Net::FTP=GLOB(0x834a938)>>> user anonymous
Net::FTP=GLOB(0x834a938)<<< 331 Password required for anonymous.
Net::FTP=GLOB(0x834a938)>>> PASS ....
Net::FTP=GLOB(0x834a938)<<< 230 User anonymous logged in.
Net::FTP=GLOB(0x834a938)>>> CWD /IN
Net::FTP=GLOB(0x834a938)<<< 250 CWD command successful.
unix2dos: converting file /home/transferfile to DOS format ...
Net::FTP=GLOB(0x834a938)>>> TYPE I
Net::FTP=GLOB(0x834a938)<<< 200 Type set to I.
Net::FTP=GLOB(0x834a938)>>> PORT X,X,X,X,128,156
Net::FTP=GLOB(0x834a938)<<< 200 PORT command successful.
Net::FTP=GLOB(0x834a938)>>> STOR /home/transferfile
Net::FTP=GLOB(0x834a938)<<< 550 /home/transferfile: The system cannot find the path specified.

open my($tr), "unix2dos $File |" or die $!; # Or FQ path $ftp->binary(); # We translate, not the server. $ftp->put($tr,$File); # must give remote name.
...............................................................................
550 /home/transferfile: The system cannot find the path specified.

open my($fh), $File or die $!; $ftp->binary(); # We translate, not the server. $ftp->put($fh,$File); # must give remote name.
...............................................................................
550 /home/transferfile: The system cannot find the path specified. -bash: 550: command not found

and I don't get any transfer, but the path to the file is correct.