This is a different approach than your splitting on \n\n. And can also process huge files as this is done line by line, record by record without requiring the whole file to be read into a single scalar by redefining the record separator.
I am still considering some of the issues in this thread myself, but I think you will find it interesting and probably useful.
In reply to Re: Include Delimiter in Split Output
by Marshall
in thread Include Delimiter in Split Output
by Saved
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |