Allasso has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I would like to be able to output, to STDOUT and/or to file, an integer in it's raw form, in 32 bit, not the string representation of the integer.
eg, I have an integer equal to 24 decimal.
I want output to be:
0x00000018
not
0x3234 ie, "two four"
help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output binary data
by roboticus (Chancellor) on Dec 29, 2010 at 03:56 UTC | |
by morgon (Priest) on Dec 29, 2010 at 07:32 UTC | |
|
Re: output binary data
by oko1 (Deacon) on Dec 29, 2010 at 06:07 UTC | |
by Allasso (Monk) on Dec 29, 2010 at 12:30 UTC | |
by roboticus (Chancellor) on Dec 29, 2010 at 12:55 UTC | |
|
Re: output binary data
by Allasso (Monk) on Dec 30, 2010 at 00:25 UTC |