"be consistent" | |
PerlMonks |
Re: keeping split delimiters causing empty string elementsby Athanasius (Archbishop) |
on Apr 15, 2016 at 13:15 UTC ( [id://1160522]=note: print w/replies, xml ) | Need Help?? |
Hello previous, TMTOWTDI: Put the separator in a single capture group:
Output:
See the final paragraph of split. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|