note
BrowserUk
<blockquote><i> Isn't 'a2' the behaviour you're asking for?</i></blockquote>
<p>It depends whether you mean the behaviour I'm looking for in the OP; or the behaviour I expect from Z; but actually, the answer is no in both cases.
<P>It's not a substitute for (my expected behaviour of) Z because it doesn't "null terminate", it only "null pads":<code>
C:\test>p1
print unpack 'C*', pack 'a2', $_ for qw[ fr x ];;
102 114
120 0
</code>
<P>And my OP question relates to [unpack] rather than [pack]. [Athanasius] picked up on a comment in a code sample that was more of a reminder to myself rather than a part of the OP.
<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
1116896