However, I have discovered that some lines may start with whitespace, meaning sometimes I get 4 elements in @flds, and sometimes 5, in which case the first element of @flds is empty. This screws up the code I have later that depends on certain values being in certain places in @flds. Is there a pattern I can use that would discard this first empty field? Or must I, for instance, test for this emptiness and shift it away?@flds = split(/\s+/);
In reply to A regexp/split question by husker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |