Jaap has asked for the wisdom of the Perl Monks concerning the following question:
Why does it only work for values up to 8 bits?print pack("S", 253) cmp pack("S", 254) => -1 print pack("S", 253) cmp pack("S", 257) => 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing packed variables
by GrandFather (Saint) on Mar 17, 2021 at 23:26 UTC | |
by Jaap (Curate) on Mar 18, 2021 at 10:33 UTC | |
by GrandFather (Saint) on Mar 18, 2021 at 10:38 UTC | |
|
Re: Comparing packed variables
by Tux (Canon) on Mar 18, 2021 at 08:30 UTC | |
|
Re: Comparing packed variables
by Anonymous Monk on Mar 18, 2021 at 15:42 UTC |