in reply to Can I do an "inner read"?
works as you expect, butwhile(<IN>) { print; }
does not. This is documented in perlop, section "I/O Operators".while(<IN> && 'perl rulez') { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I do an "inner read"?
by digger (Friar) on Mar 11, 2004 at 15:04 UTC |