I've the csv file in this format:
"Keyword" "Competition" "Global Monthly Searches" "Local Monthly Searches (United States)" "Approximate CPC (Search) - INR"
"kasperaky support" -0 -0 -0 -0
The first line is the column titles.
I've tried most of options in Text::CSV but I'm not able to extract the fields.
Here sep_char=>' '
The nearest I could go is to get the first word of the first column("kasperaky" only).
I'm creating the object this way(while trying various settings):
my $csv = Text::CSV->new ( {
binary => 1 ,
sep_char=>' ',allow_loose_quotes=>0,quote_space=>0,quote_char => '"',
,allow_whitespace =>0, eol=>"\015\012"
} )
or die "Cannot use CSV: ".Text::CSV->error_diag ();