in reply to Net::FTP and corrupted uploads
Sorry I can't be more useful at this point but if I find it I'll post here.
Update
workaround for a bug in Net::FTP 2.77, which drops the last character on each line when putting file in ASCII mode (provided by Serguey Trouchelle)
The Answer
Given the pain required to recover this information, the synopsis is$tmp =~ s/[^\015]\012/\015\012/sg if $nr;The regexp says "Search for any character followed by a \012, and replace it with \015\012". Since the character is not in the replacement string, it is deleted. This is one fix:
$tmp =~ s/([^\015];)\012/$1\015\012/sg if $nr;
|
|---|