in reply to Re: split tosses away empty components even with positive width separators?
in thread split tosses away empty components even with positive width separators?

Is $newString now comprised of four empty strings?
No, because you're combining your $empty's using an empty separator, which I fully expect to be weird since you can't tell where the original boundaries were, and as I noted, is already covered in the documentation. The question is about positive-width separators...
  • Comment on Re^2: split tosses away empty components even with positive width separators?

Replies are listed 'Best First'.
Re^3: split tosses away empty components even with positive width separators?
by Kenosis (Priest) on May 06, 2013 at 05:43 UTC

    I'm not sure I understand the phrase "positive-width separators." An adjacency google search shows zero results for that phrase, except for your usage of it in this node and related reply.

      well, it also occurs throughout the perldoc being referenced. For "positive", try "greater than zero", or "one or more", as in "a separator having one or more characters", "x" being the separator in my case.

      Google-search may do some startling things on occasion, but it's not actually that smart...