develooper Front page | perl.perl5.porters | Postings from February 2013

Re: [perl #116659] closing STDIN causes warning when openingunrelated file

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
February 6, 2013 19:18
Subject:
Re: [perl #116659] closing STDIN causes warning when openingunrelated file
Message ID:
CAHhgV8js1RuLa6MAJ6mapCmTwT4C7cb0AQ3zVJYrmnbSetvabQ@mail.gmail.com
On Wed, Feb 6, 2013 at 6:58 PM, David Golden <xdg@xdg.me> wrote:
> Capture::Tiny goes through some hoops to avoid that, but it would be
> nice if the core could find a way to stay off fd 0 (assuming a
> sufficiently portable way to do so exists).

Judging from googleing around dup/dup2 is portable among Unix, Windows
and VMS. It should be possible.

Leon

Thread Previous | Thread Next


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