Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 chilling in the Monastery: (12)
As of 2015-07-28 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls