<?xml version="1.0" encoding="windows-1252"?>
<node id="618445" title="Re^4: The future of Text::CSV_XS - TODO" created="2007-05-31 05:32:35" updated="2007-05-31 01:32:35">
<type id="11">
note</type>
<author id="40469">
tfrayner</author>
<data>
<field name="doctext">
Thanks, that's a huge improvement. I'm afraid I've discovered another slight wrinkle, though:

&lt;code&gt;
use strict;
use Text::CSV_XS;
use IO::File;

$/ = "\r";
my $f = IO::File-&gt;new_tmpfile;
print $f ('a,b,c', $/, '"d","e","f"', $/);
seek($f,0,0);
my $c = Text::CSV_XS-&gt;new({ eol =&gt; $/ });
for(0..1){
    print join("|",@{ $c-&gt;getline($f) })."\n"
}
&lt;/code&gt;

The first getline works, but the second fails. It looks as though the quote characters are blocking recognition of \r as eol (again, the code here works if $/="\n").
&lt;p&gt;
Cheers,
&lt;p&gt;
Tim</field>
<field name="root_node">
617577</field>
<field name="parent_node">
618349</field>
</data>
</node>
