in reply to Handling A File In Human-Compatible Chunks
You could set $/ to the empty string '' to get the special "paragraph mode". Then <X> would read input "paragraph-wise" instead of "line-wise". See $/ in perlvar.
the lowliest monk
In Section Seekers of Perl Wisdom