On Wed, Jun 29, 2005 at 10:24:29AM -0400, Ronald J Kimball wrote: > > Why not just use $_ there? Not only does that emulate the actual behavior > of <$io>, but then you don't need the confusing note about $x.
Well, I was hoping to confuse ;). --- ext/IO/lib/IO/Handle.pm.old Sun Apr 4 08:32:35 2004 +++ ext/IO/lib/IO/Handle.pm Wed Jun 29 10:43:47 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 within a +conditional statement, however, you will need to emulate the +functionality of <$io> with C<defined($_ = $io->getline)>. Steve Peters [EMAIL PROTECTED]