As a less rigourous solution you could just use ref to check if the argument is a reference and then presume a filehandle. It will depend on your application.
--
John.
In reply to Re: Function that accepts either a file name or a handle
by jmcnamara
in thread Function that accepts either a file name or a handle
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |