Try File::Copy or even just a system("cp file.exe newfile.exe");
Update: But you really just need to binmode the filehandle after you open it for the write :^)
See also: File Copy, Remember to binmode text files
In reply to Re: Binary Data
by djantzen
in thread Binary Data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |