Re: How to local-ly close a handle?



Ben Morrow:

The fd you closed will remain closed, but the Perl filehandle will
revert to pointing to its old fd, and thus will be open again. :)

But the OP wrote:

...then STDERR *is* finally silenced, but it *remains* silenced outside
of the block (e.g. the message from the die statement doesn't show);
i.e. the closing is not localized.

So, this contradicts what you said above, doesn't it?

Greetings, Ferry

--
Ing. Ferry Bolhar
Municipality of Vienna, Department 14
A-1010 Vienna / AUSTRIA
E-mail: bol@xxxxxxxxxxxxxxxxx


.