Re: [PATCH]Re: [perl #36417] IO::Handle::getline() doco should note an important...
authorSteve Peters <steve@fisharerojo.org>
Wed, 29 Jun 2005 21:47:23 +0000 (16:47 -0500)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 30 Jun 2005 09:04:20 +0000 (09:04 +0000)
Message-ID: <20050630024723.GA3786@mccoy.peters.homeunix.org>

p4raw-id: //depot/perl@25016

ext/IO/lib/IO/Handle.pm

index 4bb8ddf..0e61ce1 100644 (file)
@@ -117,7 +117,9 @@ otherwise.
 
 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