in reply to Re: Filehandle open?
in thread Filehandle open?

Wouldn't it then suffice to check like so?
sub is_opened { return defined fcntl $_[0], F_GETFL, 0; }

Makeshifts last the longest.