in reply to print behaving badly

Maybe I'm missing it, but I don't see where $_ is changing (or even being set!) in the loop
print while ();
Can you explain the logic of just this loop?

Replies are listed 'Best First'.
Re: Answer: print behaving badly
by chipmunk (Parson) on Dec 18, 2000 at 20:22 UTC
    The original poster used <PRE> instead of <CODE> around the code, and so the line print while (<HIS_IN>); became print while ();