Bug#332277: perl-doc: Paragraph for open in perlfunc(1) is not clear

Dominic Hargreaves dom at earth.li
Mon Apr 1 18:29:53 UTC 2013


tags 332277 +confirmed
found 332277 5.16.3-1
thanks

On Wed, Oct 05, 2005 at 06:12:10PM +0200, Vincent Lefevre wrote:
> The perlfunc(1) man page contains:
> 
>        In the 2-arguments (and 1-argument) form opening '-' opens
>        STDIN and opening '>-' opens STDOUT.
> 
> I don't think this means anything, and there are no examples for
> this form. Perhaps the correct word is "dup" instead of "open"?
> And what is dupped? STDIN (resp. STDOUT) or fd 0 (resp. fd 1)?

Good questions, and I don't know the answer. That paragraph persists,
although (noting for searchability) it's now

           In the two-argument (and one-argument) form, opening "<-" or "-"
           opens STDIN and opening ">-" opens STDOUT.

If anyone else knows what this syntax means, do tell!

Cheers,
Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)




More information about the Perl-maintainers mailing list