How about,

print "its a file handle\n" if ( fileno($FH) ); 

----- Original Message ----- 
From: "Beau E. Cox" <[EMAIL PROTECTED]>
To: "'Beginners" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 11:43 PM
Subject: File Handle?


> Hi -
> 
> I want to determine is a variable is a file handle.
> 
> How would I do this?
> 
> I know how to tell if it is a ref to something,
> but I can't seem to be able to find out if it
> is a file handle.
> 
> Aloha => Beau/
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to