in reply to Re: End of String in qr// expression
in thread End of String in qr// expression

I don't believe that <STDIN> behaves like a lazy list. STDIN would need to eof before firstval would even get a look at the data. At least under 5.8.9. This behaves differently than the while ($x = <STDIN>) { ... } block.

--MidLifeXis