|
Posted by Frank Seitz on April 11, 2008, 3:32 pm
Please log in for more thread options nolo contendere wrote:
>
>>I didn't find it in the FAQ.
>>How do I determine whether a filehandle
>>(STDERR in my case) is open?
>
> if ( defined fileno STDERR ) {
> print STDERR "SOME DATA";
> }
> else {
> warn "Error: STDERR is closed!\n";
> }
Simon, Joost: Thank you!
Frank
--
Dipl.-Inform. Frank Seitz; http://www.fseitz.de/ Anwendungen für Ihr Internet und Intranet
Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel
|