How about Text::ParseWords?
I haven't tested it but you may use this module to split your strings on whitespace, while still ignoring those that are quoted. Then join the words together:
use Text::ParseWords; @words = quotewords('\s+', 1, $text); $text = join ' ' => @words;
--bwana147
Update: finally, I tested it and it works!
In reply to Re: global whitespace delete
by bwana147
in thread global whitespace delete
by physi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |