http://www.perlmonks.org?node_id=721595


in reply to Re^2: Split criteria
in thread Split criteria

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^4: Split criteria
by Fletch (Bishop) on Nov 05, 2008 at 13:36 UTC

    When trying to come up with a really unlikely temporary separator it's better to use something really unlikely to occur in the real data. Since perl can cope with strings with embedded nulls just fine s/!,!/!\0!/g would be a more robust option.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.