in reply to Regex with Newline

while (<DATA>) { s/\n/ / if /;/; print; }

Replies are listed 'Best First'.
Re^2: Regex with Newline
by ricDeez (Scribe) on Aug 27, 2011 at 04:21 UTC

    so simple and elegant... I like it, a lot!!!