in reply to pack/unpack specification
I have used pack/unpack several times in working with sockets. I've run the program on win32, solaris, linux, and bsd and not had any problems. Pack/unpack stores the information in an 8-bit binnary stream format. Any characters you pack will have their ascii values packed into one byte. The lengths are predefined (i.e. if you use "C" it pack/unpacks an 8-bit value). There could be a problem if a system thinks a "C" is 16-bit, but when you compile perl it does check for that.
|