Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^7: dynamic extractor based off static references in file (perl)

by james289o9 (Acolyte)
on Dec 06, 2013 at 09:31 UTC ( [id://1065941]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1065941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found