http://qs1969.pair.com?node_id=986699

semiconPERL has asked for the wisdom of the Perl Monks concerning the following question:

hi masters of perl, is there a way to easily convert this code

read EP, $in, 2; $rec_len = unpack ("S", $in);
so that the output of $rec_len is the same for big endian and little endian machines?