http://www.perlmonks.org?node_id=328883


in reply to Re: File Copy/Merge Question
in thread File Copy/Merge Question

That's actually rather unsafe. See Dangerous diamonds!. This is why I was using the "< $file\0" form. If I were coding to 5.8 then I'd use three-arg open. You also just destroyed any binary data if this is to be done on a Windows computer.