in reply to Re: Is the documentation for Perl 5.20 'pack' correct?
in thread Is the documentation for Perl 5.20 'pack' correct?
byteorder is 12345678 on that platform.
That is a completely meaningless statement:
print $Config{ archname };; MSWin32-x64-multi-thread $n = 0x12345678;; print unpack 'C*', pack 'V', $n;; 120 86 52 18 print unpack 'C*', pack 'NV', $n;; 18 52 86 120 0 0 0 0 print unpack 'C*', pack 'N', $n;; 18 52 86 120 print unpack 'C*', pack 'Q<', $n;; 120 86 52 18 0 0 0 0 print unpack 'C*', pack 'Q>', $n;; 0 0 0 0 18 52 86 120
Until you define what the phrase "byteorder is 12345678" means; it means nothing useful.
It could mean:
Except that the ... in any of those statements is not specified; which renders the statement -- whatever the intended interpretation -- completely meaningless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is the documentation for Perl 5.20 'pack' correct?
by ikegami (Patriarch) on Jul 07, 2015 at 00:17 UTC | |
by BrowserUk (Patriarch) on Jul 07, 2015 at 00:20 UTC | |
by ikegami (Patriarch) on Jul 07, 2015 at 00:23 UTC | |
by BrowserUk (Patriarch) on Jul 07, 2015 at 00:36 UTC | |
by ikegami (Patriarch) on Jul 07, 2015 at 00:42 UTC | |
| |
by Anonymous Monk on Jul 07, 2015 at 00:21 UTC | |
by ikegami (Patriarch) on Jul 07, 2015 at 00:29 UTC | |
by Anonymous Monk on Jul 07, 2015 at 19:52 UTC |