|We don't bite newbies here... much|
pack() v unpack() padding: bug or ???by BrowserUk (Pope)
|on Feb 16, 2015 at 13:44 UTC||Need Help??|
BrowserUk has asked for the
wisdom of the Perl Monks concerning the following question:
The description of the 'a', 'A' & 'Z' templates for pack reads:
And sure enough:
And the docs for unpack say:
unpack does the reverse of pack: it takes a string and expands it out into a list of values.
Shouldn't that last element from unpack ('x') be padded with either space or null?
Has it always been 'wrong'? Is it too late to change it?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked