reads data from $handle. Returned as a scalar array with types specified by the format string
$handle - a handle to read the data in from (defaults to stdin)
'format' - a string describing the number of packed values and their types.
a scalar array with data reconstituded from the byte string
# pack/unpack templates are basically C struct definitions. # the sizeof operator is meant to provide the size of a chunk of data. $format = 'Z8 Z8 Z16 I'; println(sizeof($format) . " bytes");
ttyp4 raffi Fri, 2 May 2008 00:26:45 -0400