in reply to split line
You're trying to split on a separator that is literally a space between quote marks. Instead, you want to split on any amount of consecutive whitespace:
my @config = split /\s+/, $line
Note that you have leading spaces in your string; you may want to strip those out before splitting.