in reply to how to extract original string from binary files?

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,
-- Hauke D