in reply to split line

Try:
my @config = split / /,$line; # or: my @config = split ' ', $line;
You were telling perl to split on the string quote-space-quote.