Haven't needed to do this myself... but how about something like: ============================================== use FileHandle;
open(AB, "/etc/passwd") || die; $a = AB->fileno; print "A=$a\n"; =============================================== On Thu, 2003-01-09 at 15:43, Beau E. Cox wrote: > 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]