use Text::CSV; my $csv = Text::CSV->new({ sep_char => chr(9) }); my $file = shift; chomp($file); open my $fh, '<', $file; while ( my $row = $csv->getline( $fh ) ) { $index{$row->[0]} = $row }
In reply to Re: Extracting lines starting with a pattern from an array
by GotToBTru
in thread Extracting lines starting with a pattern from an array
by Alessandro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |