If you always have the same amount of fields, you might get away with:
(untested as usual)my $regex = join ', ', ('".*?"') x 5; $regex = qr/$regex\n/s; while (my @fields = $data =~ /\G$regex/g) { ... }
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Re: Re: CSV file
by Juerd
in thread CSV file
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |