<br><br><div class="gmail_quote">On Wed, Apr 28, 2010 at 12:49 PM, Stuart Watt <span dir="ltr"><<a href="mailto:stuart@morungos.com">stuart@morungos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Fulko Hew wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What am I doing wrong here???<br>
<br>
I want to have an octet string that uses nulls to delimit fields,<br>
and then the receiver should be able to 'split' on nulls to<br>
restore the original array.<br>
<br>
Empty strings in the middle of the array are preserved, but<br>
empty strings at the end of the array are not.<br>
<br>
I need them all to be preserved!<br>
What am I missing?<br>
<br>
TIA<br>
Fulko<br>
</blockquote></div>
A limit of -1 as an additional parameter to split will do the trick. It's in perldoc -f split, but well hidden<br></blockquote><div><br>Thanks, works great now!<br>My mistake was only reading the Camel book, and Google. :-(<br>
<br> <br></div></div><br>