in reply to Re: diamond operator multiple input
in thread diamond operator multiple input

That will read until EOF, won't it?

Replies are listed 'Best First'.
Re^3: diamond operator multiple input
by chromatic (Archbishop) on Jan 22, 2009 at 09:47 UTC

    Exactly, just like every readline in list context except for a while loop.

      But lc imposes a scalar context
      >perl -le"lc sub { print wantarray?1:0 }->();" 0

      By using your code, lines further down in the file will be discarded whereas they weren't in the OP's code.