<?xml version="1.0" encoding="windows-1252"?>
<node id="442869" title="Re^4: Stupid mistakes I repeatedly make" created="2005-03-28 12:07:29" updated="2005-07-27 16:56:36">
<type id="11">
note</type>
<author id="89925">
Ven'Tatsu</author>
<data>
<field name="doctext">
I've use this in my code before:
&lt;code&gt;
#actual data came over the network with inconstant line ends.
my $text = "some\r\nmulti-line\ntext";
my $line_count = $text =~ s/\r?\n/\n/g;
&lt;/code&gt;
There were cenrtanly a dozen other ways to get the line count, but for what was being done this was the most strait forward, without doing double work.</field>
<field name="root_node">
442597</field>
<field name="parent_node">
442840</field>
</data>
</node>
