$string = ""; $string =~ m/\((.*)\)/; @array = split (/,/,$1); foreach (@array){print "$_\n"}