Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: packing hex

by rob_au (Abbot)
on Dec 30, 2003 at 08:54 UTC ( #317646=note: print w/ replies, xml ) Need Help??


in reply to packing hex

You will want to take a look at the pack and unpack functions and the corresponding tutorial, Pack/Unpack Tutorial (aka How the System Stores Data), on this site - Another example of pack/unpack usage can also be seen in my signature.

rob@development:/home/rob$ perl -e '$str = pack("H*", "9b23b4b322b0da7 +0")'

 

perl -le "print+unpack'N',pack'B32','00000000000000000000001010100101'"


Comment on Re: packing hex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (16)
As of 2014-12-18 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (53 votes), past polls