And use $n = unpack 'v', $twobytes; or maybe yet unlikely, $n = unpack 'n', $twobytes; to extract the 2 byte integer. 'v' is for Little Endian, default on Intel, while 'n' is for Big Endian.
In reply to Re: perl in DOS woes
by bart
in thread perl in DOS woes
by manzico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |