my @config = split / /,$line; # split on single space my @config = split / +/,$line; # split on 1 or more spaces my @config = split /\s+/,$line; # split on one or more of spaces or tabs