On Fri, Mar 01, 2002 at 12:26:20PM +0000, Mark Fowler wrote: > <banzi>Bet now! Bet now!</banzi> > > How do I determine if something passed to me is a filehandle or something > containing the name of the file to open. This *should* be fairly simple, > but I can't work out a simple way to do it.
> ref($foo) eq "GLOB" print "We gots ourselves a file here, boys!" if defined *$foo{IO}; Paul