in reply to Re^2: Side Effects
in thread Side Effects
It doesn't, it's the while(<LOG>) that clears it. while(<LOG>) is short for while ($_ = <LOG>). When the end of the file is reached, <LOG> returns undef, undefining $_. My snippets demonstrate this behaviour.