in reply to how to unpack a big-endian signed short integer
$x = unpack 's', reverse pack 's', $x; [download]
The following should also work although it may be architecture dependent:
$x = unpack 's', pack 'n', $x; [download]
-- John.