Think about Loose Coupling | |
PerlMonks |
Re: pack questionby btrott (Parson) |
on Jul 05, 2001 at 19:41 UTC ( [id://94133]=note: print w/replies, xml ) | Need Help?? |
"Printing the ASCII chars" is not really equivalent to "converting
to hex". Which do you want? :) If you want to print out 324789 as the binary representation of a long (in network order), for example, do this: Say instead that you want to print it out in hex; then you can do this: Or you could use printf with the %x specifier.
In Section
Seekers of Perl Wisdom
|
|