in reply to Re: How to club different lines of program into one
in thread How to club different lines of program into one

$text = <IN>; will not work like you want it to if you do not undef $/.

Regexen stop after the first match; you may gain a performance benefit, but not for the reason you cite.

Replies are listed 'Best First'.
Re^3: How to club different lines of program into one
by Marshall (Canon) on May 26, 2009 at 17:50 UTC
    Thanks for the clarifications!

    As far as performance goes, it probably doesn't make any difference. So here we just have another way of doing things.