- or download this
my @fields = split / /, $string;
- or download this
my @fields = split /\s/, $string;
- or download this
my @fields = split /\s+/, $string;
- or download this
my @fields = split ' ', $string;
- or download this
my @fields = split /\s*/, $string;