[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    Re: [PATCH]Re: [perl #36417] IO::Handle::getline() doco should note
From:       Rafael Garcia-Suarez <rgarciasuarez () mandriva ! com>
Date:       2005-06-30 9:30:45
Message-ID: 20050630113045.7606d7bb () grubert ! mandrakesoft ! com
[Download RAW message or body]

Steve Peters wrote:
> 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)>.

Thanks, applied (after having fixed the pod markup.)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic