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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: split line
by lil_v (Sexton) on Jul 28, 2008 at 21:15 UTC | |
by Your Mother (Archbishop) on Jul 28, 2008 at 21:44 UTC | |
by gaal (Parson) on Jul 28, 2008 at 21:38 UTC |
In Section
Seekers of Perl Wisdom