Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: array of binaries to hex conversion

by remiah (Hermit)
on Sep 12, 2012 at 01:41 UTC ( [id://993112]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    printf "0x%x\n",                #print it as hex
        unpack("N",                 #unpack it as 32bit int ,big endian
    ...
                sprintf("%032s",    #32 length bit string
                    join('',
                        @rand1))));
    
  2. or download this
    use Config;
    print "int size=".$Config{intsize}."\n";
    print "short size=".$Config{shortsize}."\n";
    print "long size=".$Config{longsize}."\n";
    print "long long size=".$Config{longlongsize}."\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found