FAQ

On 09/26/2010 03:18 PM, Eric Brine via RT wrote:
On Sun Sep 26 14:36:06 2010, sprout wrote:
On Tue Jul 25 23:10:56 2006, ni-s wrote:

This piece of code gives FOO file descriptor 0
True - it is supposed to as there is existing code that does
explict
close(STDIN);
open(...)

relying on open getting lowest available fileno.
In that case, can I mark this as rejected?
Yes. fd0 shouldn't be closed. The only reason one would close it would
be to replace it. That's often done using the above code.
That has nothing to do with it... the documentation said $^F is one
less than the lowest file descriptor perl will automatically assign, and
that doesn't work.
- Tom

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupperl5-porters @
categoriesperl
postedJul 25, '06 at 12:19p
activeOct 13, '10 at 12:32p
posts4
users4
websiteperl.org

People

Translate

site design / logo © 2019 Grokbase