![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Behaviour of unpack() with the Z template - 2nd attemptby johngg (Canon) |
on Feb 08, 2017 at 10:12 UTC ( #1181393=note: print w/replies, xml ) | Need Help?? |
Thank you for the link. This line
defines the test for an unpack using the 'Z*' template and it would appear that a successful test would not leave a trailing null in the resultant string. I think this confirms that the expected behaviour is that the first null and everything to its right will be stripped. I think the use of "after" in Z strips everything after the first null is misleading and the wording should be clarified. Perhaps Z strips everything from the first null onwards would be a more accurate description. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|