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