<?xml version="1.0" encoding="windows-1252"?>
<node id="592528" title="Re^4: Understanding Split and Join" created="2007-01-02 06:01:22" updated="2007-01-02 01:01:22">
<type id="11">
note</type>
<author id="563242">
ferreira</author>
<data>
<field name="doctext">
I think I have misunderstood that behavior:

&lt;c&gt;
$ perl -e '@a = split //, 'abc'; print "@a"'
a b c

$ perl -e '@a = split / /x, 'abc'; print "@a"'
a b c

$ perl -e '@a = split / # /x, 'abc'; print "@a"'
a b c

$ perl -e '@a = split / (?#) /x, 'abc'; print "@a"'
a b c
&lt;/c&gt;

&lt;p&gt;The logic of [doc://split] does not need to be special for this to work. These are real empty patterns and &lt;c&gt;split&lt;/c&gt; understand they are meant to split characters as they return empty delimiters. But you were saying that the same is not automatic for patterns equivalente to &lt;c&gt;/^/&lt;/c&gt;. Sorry for the confusion I made.
</field>
<field name="root_node">
591988</field>
<field name="parent_node">
592376</field>
</data>
</node>
