CC: | david [...] boxen.net |
Subject: | documentation error |
Date: | Fri, 18 Sep 2009 17:42:17 -0700 |
To: | bug-Class-CSV [...] rt.cpan.org |
From: | Wilbert van de Pieterman <wilbert.van.de.pieterman [...] gmail.com> |
Hi David,
Thanks for making your Class::CSV available. Saved me some valuable
time dealing with the CSV format. In your documentation you give an
example for removing the first line.
pop @lines;
$csv->lines(\@lines);
This actually removes the last line :-). The example should read:
shift @lines;
$csv->lines(\@lines);
I needed this to remove the field names line in the CSV file. I
stumbled upon this bug and thought I'll let you know. Thanks again.
Wilbert