in reply to Re^6: dynamic extractor based off static references in file (perl)
in thread dynamic extractor based off static references in file (perl)

This is what i got from data::dumper
$VAR1 = ' ♦└';

So I guess it is not a numerical value. I need to get "' ♦└'" into its binary form. I already have the endianess worked out.
  • Comment on Re^7: dynamic extractor based off static references in file (perl)

Replies are listed 'Best First'.
Re^8: dynamic extractor based off static references in file (perl)
by Anonymous Monk on Dec 06, 2013 at 10:44 UTC

    $VAR1 = ' ♦└';

    Is that the same as  " \4\xC0" (actual dd-output of whatever perlmonks mangled of your Dumper output)?

    I already have the endianess worked out.

    Funny, what is the endianess? What do the bytes represent? (don't say a number in binary form -- there are a million of those, we need to know which one)

      I have figured out what i needed to do convert the character string into a hex string. Now i can put that into the variable $buffer and print Dumper($buffer)returns the correct value of 04C0.
      The problem still is, I still cannot use $buffer (04C0) in sysseek either because its a non numerical value.