in reply to Fooled By Split
So that regex captures everything between commas, even null fields. See. perle and perlop for more info.use Data::Dumper; my $txt = 'a,b,c,d,,,,,,'; my @fld = $txt =~ /([^,]*)(?:,|$)/g; print Dumper \@fld; __output__ $VAR1 = [ 'a', 'b', 'c', 'd', '', '', '', '', '', '' ];
_________
broquaint
|
|---|