I've found solutions to spliting on spaces except in quotes,...
Almost there, just do: my $result = join '', @the_so_split_array; Be careful if you apply this to perl code, as your example suggests. Some whitespace is necessary. $foo or die is not the same as $fooordie.
After Compline,
Zaxo
In reply to Re: Remove Tabs and white space from a line except in Quotes
by Zaxo
in thread Remove Tabs and white space from a line except in Quotes
by SmokeyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |