The problem with this is that I seem to be getting an additional array field consisting of a single space
That is the effect of parens in a split re. Try this: my @array = split(/,\s*/, $string);
After Compline,
Zaxo
In reply to Re: split strangeness
by Zaxo
in thread split strangeness
by rob_au
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |