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

It appears that you aware of the unpack templates, but are having trouble using them. You cannot post a binary file here, but you can post an ASCII hex string just like source code, within code blocks, say the first 60-100 bytes of your binary file? Then explain what this byte stream means to you. Folks here would understand a C struct. Show your code so far if you can.
  • Comment on Re: how to extract original string from binary files?

Replies are listed 'Best First'.
Re^2: how to extract original string from binary files?
by swapy345 (Initiate) on May 19, 2016 at 08:34 UTC
    Hi Marshall, I got the solution. Thanks for help! Swapnil

      As you mention EBCDIC, are you aware that Perl can decode EBCDIC data very well?

      Usually decoding the conent of (PIC X) fields using

      my $printable = decode('cp37', $input);
      or
      my $printable = decode('cp1047', $input);