Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Need Raw Binary Output

by Anonymous Monk
on Dec 05, 2016 at 21:01 UTC ( [id://1177285]=note: print w/replies, xml ) Need Help??


in reply to Need Raw Binary Output

See pack:

print pack('N',123456789); # unsigned, big-endian # output (hex): 07 5b cd 15 print pack('V',123456789); # unsigned, little-endian # output (hex): 15 cd 5b 07

Replies are listed 'Best First'.
Re^2: Need Raw Binary Output
by Anonymous Monk on Dec 06, 2016 at 19:49 UTC

    Yep! Looks like just what I needed. And simple, as I suspected (and hoped).

    Thank you for the help.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-25 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found