in reply to Re^2: split tosses away empty components even with positive width separators?
in thread split tosses away empty components even with positive width separators?
Well, one must say that the behavior shown in the following debugger session does not seem to be completely consistent.
DB<1> x split /-/, "-" empty array DB<2> x split /-/, "-foo-bar-" 0 '' 1 'foo' 2 'bar'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: split tosses away empty components even with positive width separators?
by AnomalousMonk (Archbishop) on May 06, 2013 at 17:42 UTC | |
by Laurent_R (Canon) on May 06, 2013 at 18:05 UTC |
In Section
Seekers of Perl Wisdom