in reply to Function that accepts either a file name or a handle
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Function that accepts either a file name or a handle
by tye (Sage) on Apr 21, 2004 at 06:52 UTC | |
by eyepopslikeamosquito (Archbishop) on Apr 21, 2004 at 08:25 UTC | |
by tye (Sage) on Apr 21, 2004 at 18:34 UTC |