in reply to Testing for open filehandles

Or just check return values

print( FH, "Hello world\n" ) || die "oops: $!\n";

-derby

Replies are listed 'Best First'.
Re: Re: Testing for open filehandles
by trantor (Chaplain) on Sep 11, 2001 at 16:02 UTC

    This could have very nasty side effects if you just want to check if the filehandle is open :-)

    -- TMTOWTDI