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
so that the output of $rec_len is the same for big endian and little endian machines?read EP, $in, 2; $rec_len = unpack ("S", $in);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to easily convert the pack function from little endian to big endian
by BrowserUk (Patriarch) on Aug 10, 2012 at 09:33 UTC | |
|
Re: How to easily convert the pack function from little endian to big endian
by Marshall (Canon) on Aug 10, 2012 at 14:49 UTC | |
|
Re: How to easily convert the pack function from little endian to big endian
by flexvault (Monsignor) on Aug 10, 2012 at 14:19 UTC | |
|
Re: How to easily convert the pack function from little endian to big endian
by Tux (Canon) on Aug 13, 2012 at 06:30 UTC |