But see the documentation pointed out by RichardK:
>perl -wMstrict -le "printf qq{'$_' } for split /-/, '-foo-bar-', -1; " '' 'foo' 'bar' ''
In reply to Re^4: split tosses away empty components even with positive width separators?
by AnomalousMonk
in thread split tosses away empty components even with positive width separators?
by wrog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |