[Bioperl-l] Grrrr. Another subtle overloading bug ...

Aaron J Mackey Aaron J. Mackey" <amackey@virginia.edu
Mon, 7 Jan 2002 08:55:10 -0500 (EST)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Mon, 7 Jan 2002, Ewan Birney wrote:

> This is definitely what happens!
>
>   if( $@ =~ /EX/ )  # returns true
>   if( $@ ) # returns false

I believe you, but I can't find where you see this happening.  At the
command line, I get the expected behavior:

% perl -l
use Bio::Root::Root;
my $obj = new Bio::Root::Root;
eval {
  $obj->throw(-class => Bio::Root::Exception, -text => "foobar")
};
if($@) {
  print "Thrown!"
}
^D
Thrown!
% perl -v

This is perl, v5.6.1 built for i686-linux

> I don't understand it fully either, but that is definitely what is
> happening...

Can you point me at where you've tracked it down to?  When I 'make test' I
get a bunch of searchIO failures (i.e. thrown exceptions) parsing the
HUMBETGLOA.tblastx data.

- -Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (OSF1)
Comment: For info see http://www.gnupg.org

iD4DBQE8Oai+t6Sp9Om+GYMRAq7CAJY+aba6EvjeTyIOMipvhfSjg9BlAJ4sdZ2c
0/CUQm4fzQf9LG7XErgj6g==
=KcLt
-----END PGP SIGNATURE-----