in reply to Check whether a file is open

The only thing I can see is:

-X

-t    Filehandle is opened to a tty.

Not quite the same thing though.

HTH.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!