In most cases you can test if a scalar contains a valid file handle by calling fileno on it; but that doesn't work for ram file handles.
I've used tell as a 'valid open file handle' test in the past and didn't find any limitations.
In reply to Re: check scalar holds filehandle
by BrowserUk
in thread check scalar holds filehandle
by bagyi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |