in reply to Re: Re: split/map weirdness: empty strings vs undef
in thread split/map weirdness: empty strings vs undef
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: split/map weirdness: empty strings vs undef
by sauoq (Abbot) on Oct 04, 2002 at 20:24 UTC | |
by dws (Chancellor) on Oct 04, 2002 at 21:39 UTC | |
by sauoq (Abbot) on Oct 04, 2002 at 21:56 UTC |