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

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

Replies are listed 'Best First'.
Re^4: Removing double carriage return
by Anonymous Monk on Aug 21, 2011 at 06:21 UTC

    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>