You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perl documentation (5.005_61, but not in 5.004_02 and 5.005_02) contains
misprint.
It says:
...............
* The integer formats `"s"', `"S"', `"i"', `"I"', `"l"',
and `"L"' are inherently non-portable between processors
and operating systems because they obey the native
byteorder and endianness. For example a 4-byte integer
0x87654321 (2271560481 decimal) be ordered natively
(arranged in and handled by the CPU registers) into
bytes as
The number 0x87654321is incorrect, it should be 0x78563412,
because single machine byte chunks are not considered to be swapped.
(no architecture makes transofmation of 0x87<=>0x78 [decimal:135<=>120])
If I misunderstand the point then function explanation should be clearer :)
Migrated from rt.perl.org#1381 (status was 'resolved')
Searchable as RT1381$
The text was updated successfully, but these errors were encountered: