On Wed, Jun 29, 2005 at 11:56:10PM +0100, Dave Mitchell wrote:
> On Wed, Jun 29, 2005 at 06:46:49PM -0400, Ronald J Kimball wrote:
> > > not within any old conditional statement, only as the sole contents of a
> > > *while* condition.
> > 
> > Or the conditional in a C-style for loop, I believe.
> 
> Indeed.
>
So, indeed, I hope that the third time is the charm...

--- ext/IO/lib/IO/Handle.pm.old Sun Apr  4 08:32:35 2004
+++ ext/IO/lib/IO/Handle.pm     Wed Jun 29 21:46:44 2005
@@ -117,7 +117,9 @@

 This works like <$io> described in L<perlop/"I/O Operators">
 except that it's more readable and can be safely called in a
-list context but still returns just one line.
+list context but still returns just one line.  If used as the conditional
+within a C<while> or C-style C<for> loop, however, you will need to
+emulate the functionality of <$io> with C<defined($_ = $io->getline)>.

 =item $io->getlines

Steve Peters
[EMAIL PROTECTED]

Reply via email to