diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-06-29 16:47:23 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-30 09:04:20 +0000 |
commit | bb4e8523c089d29c1ee8ad967ce158f2af1b4ada (patch) | |
tree | e298bb7f632d24972fbb76d46f1ba5445a252866 /ext/IO/lib | |
parent | e7a3c61bcf7851f350928abe9b4462622caa7dec (diff) | |
download | perl-bb4e8523c089d29c1ee8ad967ce158f2af1b4ada.tar.gz |
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
Diffstat (limited to 'ext/IO/lib')
-rw-r--r-- | ext/IO/lib/IO/Handle.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/IO/lib/IO/Handle.pm b/ext/IO/lib/IO/Handle.pm index 4bb8ddf5b5..0e61ce18ca 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<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 |