note
BrowserUk
<blockquote><i>unpack is deciding to remove trailing spaces, I guess in the assumption that they are artifacts from pack.</i></blockquote>
<p>Same question: can anyone describe the use they made of that? Or even think of a use for it?
<P>In the end it all comes down to my need to chop an arbitrary length string into n-byte chunks; and the requirement to have the last chunk padded if it is shorter than n.
<P>It seems to me that this is a fairly common requirement -- think all the Digest::* modules that need to operate upon fixed-sized chunks of data -- and there isn't (AFAIK) a clean way to do that.
<P>And here we have a couple of templates that almost do it; but at the margins, do something that whilst they can be reasoned (with squinty eye's and big dollop of belief suspension), to be "doing the opposite of pack"; do things that there are no good uses for; whilst leaving the common requirement unserviced.
<p>That's just not very Perlish.
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div>
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority".
[http://www.theregister.co.uk/2015/01/19/got_bugs_got_anger_just_get_them_out_says_linus_torvalds/|I'm with torvalds on this]
</div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice. [http://vimeo.com/110554082|Agile (and TDD) debunked]
</div>
</font>
</div></div>
1116868
1116885