in reply to Re: Removing double carriage return
in thread Removing double carriage return

A program that reads a file, line by line, will never encounter more than one carriage return

Replies are listed 'Best First'.
Re^3: Removing double carriage return
by i5513 (Pilgrim) on Aug 20, 2011 at 08:44 UTC

    This is the why GrandFather is using "local $/;" in his script which is referenced by pvaldes reply.

    Update: I didn't read the comment of pvaldes before he updated it, thanks Anonymous for clarifying this issue

      This is the why GrandFather is using "local $/;" in his script which is referenced by pvaldes reply.

      The proper way to reference GrandFathers reply is to respond to GrandFathers reply and copy/paste the most critical portion (local $/)

      What pvaldes has done is update his reply without notice

      This is his original node

      match 3 or more carriage returns... maybe like this? <code>if =~ m/[\n]{3,}/</code>