Quite so. And note that split(/\|/, "2|3||||"); gives a different result than split('|', "2|3||||"); Consult perlfunc for details. You probably want to be using the latter form, as it retains empty fields.
In reply to Re: Re: Re: split/map weirdness: empty strings vs undef
by dws
in thread split/map weirdness: empty strings vs undef
by hossman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |