There are many ways to do what you want. The easiest (IMO) is to later fix the array. You could also (which seems more elegant to me) preprocess the line just before splitting, by removing all offending whitespace :
s/^\s+//g;
In reply to RE: A regexp/split question
by Corion
in thread A regexp/split question
by husker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |