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 &#39;split&#39; 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><br><br>#!/usr/bin/perl<br><br>use Data::Dumper;<br><br>my @x = ( &#39;a&#39;, &#39;b&#39;, &#39;c&#39;, &#39; &#39;, &#39;d&#39;, &#39;&#39;, &#39;&#39; );<br>

my $f = join (&quot;\x00&quot;, @x);<br>print Dumper(@x);<br>print unpack (&#39;H*&#39;, $f), &quot;\n\n&quot;;<br><br>@r = split (&quot;\x00&quot;, $f);<br><br>print Dumper(@r);<br><br><br>