my @config = split / /,$line; # or: my @config = split ' ', $line;