[tpm] why aren't field counts being preserved?
Stuart Watt
stuart at morungos.com
Wed Apr 28 09:49:50 PDT 2010
Fulko Hew wrote:
> What am I doing wrong here???
>
> I want to have an octet string that uses nulls to delimit fields,
> and then the receiver should be able to 'split' on nulls to
> restore the original array.
>
> Empty strings in the middle of the array are preserved, but
> empty strings at the end of the array are not.
>
> I need them all to be preserved!
> What am I missing?
>
> TIA
> Fulko
A limit of -1 as an additional parameter to split will do the trick.
It's in perldoc -f split, but well hidden
All the best
Stuart
More information about the toronto-pm
mailing list