Y
Yakov
Let's say I want to check whether $fh is a filehandle. Take 1
is to: defined(fileno($fh)). Perfect solution ? No. When $fh is a
tied-filehandle, $fh may not have real filedescriptor behind it
( for example, it sends output to the shared memory ).
How do I check for $fh being a filehandle, the check would work
even for tied filehandles that do not have real filedescriptor ?
Thanks
Yakov
is to: defined(fileno($fh)). Perfect solution ? No. When $fh is a
tied-filehandle, $fh may not have real filedescriptor behind it
( for example, it sends output to the shared memory ).
How do I check for $fh being a filehandle, the check would work
even for tied filehandles that do not have real filedescriptor ?
Thanks
Yakov