in reply to Can I do an "inner read"?

Ahhh, the same trap again :)
while(<IN>) { print; }
works as you expect, but
while(<IN> && 'perl rulez') { print; }
does not. This is documented in perlop, section "I/O Operators".

Replies are listed 'Best First'.
Re: Can I do an "inner read"?
by digger (Friar) on Mar 11, 2004 at 15:04 UTC
    I wish I could ++ you again. I moved the additional test inside the while loop as an if, and got the output I desired. There are a few logic errors that need to be fixed, but at least the behavior makes sense to me now.

    Thank you, thank you, and thank you again,
    digger.