Cheers, Jamesopen(FH,"file.exe"); binmode(FH); my $binary; while(<FH>) { $binary .= $_; } close(FH); open(FH,">newfile"); binmode FH; #<---- Add this and it works just fine :) print FH $binary; close(FH);
In reply to Re: Binary Data
by JamesNC
in thread Binary Data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |