in reply to Re^2: How to capture quantified repeats?
in thread How to capture quantified repeats?
use strict; use warnings; use Text::CSV; my $ham = "spam\tspam\tspam\t\tyam\tclam"; my $csv = Text::CSV->new({sep_char => "\t", quote_char => undef}); my $status = $csv->parse($ham); my @jam = $csv->fields(); print join("\n", '**', @jam, '**', '');
|
|---|