in reply to pack question
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:print pack "N", 324789;
Or you could use printf with the %x specifier.print unpack "H*", pack "N", 324789;
|
|---|