Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I should then be able to pull the binary data from that file, or execute it if it was an executable. However, the above code segment produces a file that is much larger than the original.open(FH,"file.exe"); binmode(FH); my $binary; while(<FH>) { $binary .= $_; } close(FH); open(FH,">newfile"); print FH $binary; close(FH);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Binary Data
by JamesNC (Chaplain) on Jun 12, 2003 at 02:30 UTC | |
|
Re: Binary Data
by djantzen (Priest) on Jun 12, 2003 at 01:56 UTC | |
by Anonymous Monk on Jun 12, 2003 at 02:09 UTC |