<?xml version="1.0" encoding="windows-1252"?>
<node id="592363" title="Re^2: Understanding Split and Join" created="2006-12-30 14:34:03" updated="2006-12-30 09:34:03">
<type id="11">
note</type>
<author id="563242">
ferreira</author>
<data>
<field name="doctext">
Both exceptions, the special treatment of &lt;c&gt;//&lt;/c&gt; and &lt;c&gt;/^/&lt;/c&gt; by split, are documented in [doc://split]. Both may deserve to be mentioned in the tutorial quickly for the profit of the unaware. The last remark by [ysth] about the non-equivalence of &lt;c&gt;/^(?#)/&lt;/c&gt; and &lt;c&gt;/^ /x&lt;/c&gt; with &lt;c&gt;//&lt;/c&gt; for split purposes is a subtle thing. More subtle if you compare to the fact that &lt;c&gt;/ /x&lt;/c&gt;, &lt;c&gt;/ # /x&lt;/c&gt; or even &lt;c&gt;/ (?#)/x&lt;/c&gt; have the same treatment as &lt;c&gt;//&lt;/c&gt; when passed to this function. Looks like a case to be fixed either in the docs or in the code of the Perl interpreter itself (if not barred by compatibility issues).</field>
<field name="root_node">
591988</field>
<field name="parent_node">
592186</field>
</data>
</node>
