You might try splitting on quotes first., e.g.
my @quotes_array = spilt /"/, $input;
my @final_array;
# Array members with odd idices will be quoted strings, split others on comma.
for ( my $index = 0; $index < @quotes; $index++ )
{
if ( $index % 2 )
{
push @final_array, ( split /,/, $quotes_array[ $index ] );
}
else
{
push @final_array, $quotes_array[ $index ]
}
}
Some one else may be able to think of a less "C"ish way...
Smiddy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]