On Monday, November 18, 2002, at 08:05 PM, Damian Conway wrote:
That's a scalar context? I assumed it was list context from your previous post:More or less. Technically: call <$fh.next> and execute the loop body if that methodwhile <$fh> {...} # Iterate until $fh.readline returns EOF?
returns true. Whether it still has the automatic binding to $_ and the implicit
definedness check is yet to be decided.
At any rate, I hope that it's bound to $_ -- nice conversion from Perl 5's behavior, that.In a list context:<$fh> # Calls $fh.each
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]