I am new to perl and working on a script to extract data from a csv file- my current code parses each line and prints the words from each line using the parse_line method of the Text:
arseWords module. When I try to print @words[1] it prints all the contents of the second column. How should I go about extracting the content of a particular row,column?
thanks,
sun
Code:
while (defined($line = <SOURCE>))
{
@words = &parse_line('\s+', 0, $line);
$i = 0;
foreach ($line) {
print (@words);
$i++;
}
}
thanks,
sun