On Feb 11, 2004, at 11:13 AM, Michael C. Davis wrote: [..]
This suggests doing it in an eval (so the error message gets trapped) and
testing the result, but that seems like a complicated solution for a simple
problem. Can anyone suggest a better way?
Thanks very much in advance.
have you looked at say
perldoc IO::Handle
eg:
$io->opened
Returns true if the object is currently a valid file descriptor,
false otherwise.
The perldoc IO::File is a subclass of IO::Handle...
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>