http://qs321.pair.com?node_id=11123427


in reply to Reading and unpacking on one line

In the first case. you read 16 characters into $_ and then unpack the contents of $_. In the second case, you do the same read, but you unpack the return value of read (the number of characters actually read, 16).
Bill