in reply to Re^3: split tosses away empty components even with positive width separators?
in thread split tosses away empty components even with positive width separators?
But see the documentation pointed out by RichardK:
>perl -wMstrict -le "printf qq{'$_' } for split /-/, '-foo-bar-', -1; " '' 'foo' 'bar' ''
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: split tosses away empty components even with positive width separators?
by Laurent_R (Canon) on May 06, 2013 at 18:05 UTC |