Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Translate big endian C to perl on x86 of binary file into structure

by renodino (Curate)
on Sep 14, 2007 at 22:10 UTC ( #639096=note: print w/replies, xml ) Need Help??


in reply to Translate big endian C to perl on x86 of binary file into structure

See pack and unpack, esp. the N/n vs. V/v format specifiers. However, if you need to unpack floats, I fear you'll need to get out the IEEE spec and swizzle your own bytes.

Perl Contrarian & SQL fanboy
  • Comment on Re: Translate big endian C to perl on x86 of binary file into structure

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://639096]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-06-27 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (595 votes). Check out past polls.