<?xml version="1.0" encoding="windows-1252"?>
<node id="419930" title="Re^2: Split Decision" created="2005-01-06 09:37:13" updated="2005-06-06 19:57:04">
<type id="11">
note</type>
<author id="5301">
Aragorn</author>
<data>
<field name="doctext">
&lt;code&gt;'\n'&lt;/code&gt; will also work:

&lt;code&gt;
#!/usr/bin/perl

my $string = "Bla\nBlo\nBloe";
print join("|", split('\n', $string));
&lt;/code&gt;

This works, and the reason becomes clear when you run it through B::Deparse:

&lt;code&gt;
$ perl -MO=Deparse split.pl 
my $string = "Bla\nBlo\nBloe";
print join('|', split(/\n/, $string, 0));
split.pl syntax OK
&lt;/code&gt;
&lt;p/&gt;
Arjen</field>
<field name="root_node">
419920</field>
<field name="parent_node">
419924</field>
</data>
</node>
