<?xml version="1.0" encoding="windows-1252"?>
<node id="1006915" title="Re: Split function" created="2012-12-03 12:14:04" updated="2012-12-03 12:14:04">
<type id="11">
note</type>
<author id="747201">
afoken</author>
<data>
<field name="doctext">
&lt;blockquote&gt;i am reading a text file&lt;/blockquote&gt;
&lt;p&gt;Hmm, I think you are reading a CSV file, not just a text file. And unless it's for learning Perl, consider using [mod://Text::CSV_XS] (or the slightly slower pure-perl version [mod://Text::CSV]) instead. Text::CSV_XS handles all of those ugly edge cases that a simple &lt;c&gt;split&lt;/c&gt; can't handle - embedded quotes, embedded separation character, quoted values, to name just a few.&lt;/p&gt;
&lt;p&gt;Alexander&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-747201"&gt;
--&lt;br&gt;
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1006854</field>
<field name="parent_node">
1006854</field>
</data>
</node>
