http://www.perlmonks.org?node_id=470227


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

  • Comment on Re: Handling A File In Human-Compatible Chunks