Jan 29, 2009, 9:33 AM
Post #1 of 10
Parsing a CSV file with Snail::CSV
I am trying to parse a file using Snail::CSV
$parsed is not what i expected.Someone knows how does this works.
my $csv = Snail::CSV->new();
$csv->setFile("sample.csv", [ "Name", "Age", "Year" ]);
my $parsed = $csv->parse;
Also do i have to use a while loop to read the whole file ?
Thanks in advance