AW: [Bioperl-l] New Annotation interfaces!

Murat Ünalan murat.uenalan@gmx.de
Fri, 2 Nov 2001 08:20:03 +0100


I am not in the subject, but 

:: > 
:: > if (ref($thingy) eq "HASH") {....}

     if( UNIVERSAL::isa( $thingy, '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).
:: 

Is far better. Even when 'thingy' gets blessed into "something".