good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Behaviour of unpack() with the Z templateby johngg (Canon) |
on Feb 08, 2017 at 10:45 UTC ( [id://1181400]=note: print w/replies, xml ) | Need Help?? |
I agree that the actual behaviour is "symmetric" and that makes sense from a design point of view. I confirmed the behaviour of the test you ran
I don't think the documentation has a problem with the "A" or "a" descriptions but the "Z" one should be clarified. An alternative to my suggestion in the above might be Z returns everything up to but not including the first null. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|