Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Parsing output from the CSV file

by manorhce (Beadle)
on Feb 07, 2013 at 19:51 UTC ( #1017719=note: print w/replies, xml ) Need Help??

in reply to Parsing output from the CSV file

Use like the below it will parse the data and will create fields according

$csv = Text::CSV::Simple->new({ sep_char => q{,}, binary => 1 }); $csv->field_map( qw( field1 field2 field3 field4 ) ); my @objectlist = $csv->read_file($file_name); foreach my $data (@objectlit) { print $data->{field1}."field2",$data->{field2} }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017719]
[Corion]: Discipulus: Nah, I'm thinking of posting more short stuff, but not all of it is fit for, more something a bit longer than Twitter but shorter than my usual b.p.o module posts
[Corion]: But Google+ is tedious and I'd like to keep my posts on an open platform instead, which can be followed via RSS

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-05-26 07:45 GMT
Find Nodes?
    Voting Booth?