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