develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [perl #41907] clarification of return code in for 'select FH' case (perldoc -f select)

Thread Previous
From:
Rafael Garcia-Suarez
Date:
March 19, 2007 17:01
Subject:
Re: [perl #41907] clarification of return code in for 'select FH' case (perldoc -f select)
Message ID:
b77c1dce0703191701w44ae3b4u8ee9641483119783@mail.gmail.com
On 19/03/07, via RT Yakov Lerner <perlbug-followup@perl.org> wrote:
> Problem: 'perldoc -f select' does not clearly describe return
>          value in case when select has FILEHANDLE argument.
> Solution: clarify that 'select FILEHANDLE' returns previously selected
> filehandle.

Thanks. I preferred to apply the patch below, which is more concise
but hopefully as clear :

Change 30646 by rgs@stcosmo on 2007/03/19 23:59:54

        Better wording for the return value of select()
        (bug #41907)

Affected files ...

... //depot/perl/pod/perlfunc.pod#557 edit

Differences ...

==== //depot/perl/pod/perlfunc.pod#557 (text) ====

@@ -4824,8 +4824,8 @@

 =item select

-Returns the currently selected filehandle.  Sets the current default
-filehandle for output, if FILEHANDLE is supplied.  This has two
+Returns the currently selected filehandle.  If FILEHANDLE is supplied,
+sets the new current default filehandle for output.  This has two
 effects: first, a C<write> or a C<print> without a filehandle will
 default to this FILEHANDLE.  Second, references to variables related to
 output will refer to this output channel.  For example, if you have to

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About