in reply to Extra Stuff

Use split's third argument, and avoid all that messy var n stuff; you might as well also avoid the problem with the scoping of $rec:
foreach my $rec (@CUSTDATA) { my @row; chomp $rec; @row = split(/,/,$rec,14); }

You might also want to look at Text::CSV and/or DBD::CSV.

Replies are listed 'Best First'.
Re (tilly) 2: Extra Stuff
by tilly (Archbishop) on Apr 17, 2001 at 01:34 UTC
    Better than Text::CSV is Text::xSV. (Which would be on CPAN already if I had a working net connection last weekend. Gimme a couple of days.)