laziness, impatience, and hubris | |
PerlMonks |
Re^2: end of line helpby mjscott2702 (Pilgrim) |
on Nov 18, 2010 at 09:29 UTC ( [id://872163]=note: print w/replies, xml ) | Need Help?? |
Definitely agree with the idea of slurping the whole file into a string in binary mode, assuming it fits - or maybe there is a variant of Tie::File for binary files that might help here (I did a quick search on CPAN and nothing jumped out)?
In any case, if you are transferring files between systems, and possibly different OS's using something like FTP - make sure you use binary mode for the transfer.
In Section
Seekers of Perl Wisdom
|
|