note
Corion
<p>The <c>while( <> ) {</c> loop reads more data from STDIN or the file(s) in <c>@ARGV</c>. If you observe different behaviour, then most likely, the data from the two locations was consumed in a previous loop in the old script and is now not consumed in the new script.</p>
<p>A tedious but workable approach IMO is to inspect all the previous loops that consume input from <c>STDIN</c>, or <c>@ARGV</c>, by editing down (a copy of) the script until only the offending loops (or statements leaving these loops) remain.</p>
11137798
11137798