There is a magical form of split which will do all that:
That's all it takes. length($data) will be 0 if the original was all spaces.$data = join ' ', split " ", $data;
After Compline,
Zaxo
In reply to Re: Searching Strings for Characters
by Zaxo
in thread Searching Strings for Characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |