in reply to Re: Is this a logic bug or a perl bug?
in thread Is this a logic bug or a perl bug?

Just to nitpick, the original while loop is actually equivalent to while(defined($_ = <DATA>)) ($foo, etc.) -- note the defined.