in reply to checking a file handle to see if it is open

my $open = fileno($fh); # if open is NOT undef the file is open
Boris