No such thing as a small change | |
PerlMonks |
Re: how to extract original string from binary files?by haukex (Archbishop) |
on May 18, 2016 at 18:57 UTC ( [id://1163367]=note: print w/replies, xml ) | Need Help?? |
Hi swapy345, You would use the unpack templates which correspond to the data types contained within the binary file, these are documented in pack. Also, I'd recommend to open the file with the "raw" layer to make sure no translations happen, e.g. open my $fh, '<:raw', 'filename' or die $!; (see also binmode). Hope this helps,
In Section
Seekers of Perl Wisdom
|
|