I have a database with a number of fields containing comma separated values. I need to split these fields in Perl, which is straightforward enough except that some of the va
Try this:
my $s = q{recycling, environmental science, interdisciplinary (e.g., consumerism, waste management, chemistry, toxicology, government policy, and ethics), consumer education}; my @parts = split /(?![^(]+\)), /, $s;