From: Steve Peters Date: Wed, 29 Jun 2005 21:47:23 +0000 (-0500) Subject: Re: [PATCH]Re: [perl #36417] IO::Handle::getline() doco should note an important... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb4e8523c089d29c1ee8ad967ce158f2af1b4ada;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH]Re: [perl #36417] IO::Handle::getline() doco should note an important difference from <$io> Message-ID: <20050630024723.GA3786@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@25016 --- diff --git a/ext/IO/lib/IO/Handle.pm b/ext/IO/lib/IO/Handle.pm index 4bb8ddf..0e61ce1 100644 --- a/ext/IO/lib/IO/Handle.pm +++ b/ext/IO/lib/IO/Handle.pm @@ -117,7 +117,9 @@ otherwise. This works like <$io> described in L 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 or C-style C loop, however, you will need to ++emulate the functionality of <$io> with C<< defined($_ = $io->getline) >>. =item $io->getlines