my $stuff='one, two, , three, four'; #empty element between two and three my @arr=split(/, /, $stuff); #split on space comma