Unrelated to your original query, but your module doesn't do quite what it says on the tin. You may wish to emend the documentation.
lines : foo<LF>bar<CR><LF>baz
$ perl -e'use File::Edit::Portable;$r=File::Edit::Portable->new;$h=$r->read("lines");$t=$r->tempfile;print$t $_ while<$h>;$r->write(contents=>$t)'
According to spec, lines should be the same after I ran that as before. In fact it was foo<LF>bar<LF>baz<LF> afterward.
In reply to Re^3: Perl6: Capturing newline in a string
by msh210
in thread Perl6: Capturing newline in a string
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |