Regarding this from perlvar:
Remember: the value of $/ is a string, not a regex. awk has to
be better for something. :-)
It seems to me that the DFAable rules would intertwingle nicely as
a non-backtracking stream chunker. Is the form of per-filehandle
input record separators in the Synposes yet? I couldn't find it.
If there is something that must be done, it is better not to rely on others.
-- Hagakure http://bereft.net/hagakure/
No, though it was discussed in ages past. However, I've just added
a remark to Functions.pod that .split may be used on filehandles and
lists just like .comb can, which gives you $*ARGS.split(/\n[\h*\n]+/)
or some such for paragraph mode.
We might yet attach something to an IO object that can do it too,
and maybe it can even make better guarantees about leaving the
file position after the record separator, which split can't really
guarantee under the current definition of laziness (unless we allow
arbitrary pushback onto filehandles). But these days we're in the
mode where specs are being driven primarily by the implementors,
and nobody's working much on the IO layers/roles at the moment.
Feel free to whack on 'em if you like.