[Bioperl-l] New Annotation interfaces!

Hilmar Lapp hilmarl@yahoo.com
Wed, 31 Oct 2001 00:04:30 -0800


Chris Mungall wrote:
> 
> >
> > The difficulty I see here is how do you cleanly and generically
> > tell apart an object from a hash reference in Perl? ref($thingy)
> > is true and a string in
> 
> if (ref($thingy) eq "HASH") {....}
> 
> Ok, it's not all that nice but it works.
> 

Sure, if the ref wasn't reblessed. I think what I really meant is
whether you really need to allow for arbitrary hash refs here, as
there is some (not a terrible though) penalty in code sanity (and
simplicity in traversing the tree).

	-hilmar
-- 
-----------------------------------------------------------------
Hilmar Lapp                              email: hilmarl@yahoo.com
San Diego, Ca. 92130                     phone: +1 858 812 1757
-----------------------------------------------------------------