It's probably a Death to Dot Star! issue. You should read that node and see if you can recast your regex to better define the data that you're trying to match. At the moment, it's matching "string\n\n" as three separate strings when you probably only want two.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Bother (Re: Re: Split and empty strings)
by davorg
in thread Split and empty strings
by andye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |