On Fri, Sep 28, 2012 at 11:26:37AM -0400, Bill McGonigle wrote:
...
> I think what we need here is a way for join('\0',('')) 
> to respect the leading whitespace 

I played with this a bit. The easiest way is to simply add 
another element to the array before joining it, via unshift, and 
then making sure you shift the resulting post-split array. However, 
that leaves too much of a foot-gun around as we would be slinging 
those hashrefs full of pumped-up arrayrefs around, and it would be 
too easy to forget that they are magical and need their first 
element stripped. So, I simply made special ternary operator 
tests when breaking apart the string, such that a string of zero 
length is always equal to [''].

Long story short, give a1e344482df178c8fb29373ace7f945ab65984ed
a try. :)

-- 
Greg Sabino Mullane [email protected]
End Point Corporation
PGP Key: 0x14964AC8

Attachment: pgpqbf6AE3YR8.pgp
Description: PGP signature

_______________________________________________
Bucardo-general mailing list
[email protected]
https://mail.endcrypt.com/mailman/listinfo/bucardo-general

Reply via email to