Perl pack Function Tutorial
Learn through examples how to use the Perl pack function to concatenate into a string a list of values converted according to the formats specified by a template. There are provided a lot of commented examples to help you better understand how to use the pack function in your scripts. There are exemplified almost all the templates available: a string with arbitrary binary data; a text string; a bit string (either in an ascending or descending order inside each byte); a signed or an unsigned char; a single or double precision float in native format; a hex string; a signed or an unsigned integer value; a signed or an unsigned long value and much more.