Text-CSV-Simple - Re: Having Problem with Text-CSV-Simple

Posted on Fri Jun 1 22:59:53 2007 by dday in response to 3636 (See the whole thread of 2)
Re: Having Problem with Text-CSV-Simple
Hey, Samn-

Looks like you didn't set a value for your CSV data file variable, "$datafile". You need to specify a file for that variable. Then, it should work like a charm.

use Text::CSV::Simple;
my $parser = Text::CSV::Simple->new;
my $datafile = "SamnsCSVFile.csv";
my @data = $parser->read_file($datafile);
print @$_ foreach @data;

Enjoy,
D-Day

Write a response