[Bioperl-l] trap warnings in eval?
Heikki Lehvaslaiho
heikki at sanbi.ac.za
Fri Apr 7 13:12:51 UTC 2006
Albert,
Change the verbosity of the the object to >=2 ,e.g. $obj->verbose(2) and
Bio::Root::RootI::warn() will call throw instead - and which eval will trap
it.
-Heikki
On Friday 07 April 2006 11:39, Albert Vilella wrote:
> Hi all,
>
> Short question:
>
> What is the preferred way to trap a bioperl warning inside an eval
> block?
>
> Thanks in advance,
>
> Bests,
>
> Albert.
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
--
______ _/ _/_____________________________________________________
_/ _/
_/ _/ _/ Heikki Lehvaslaiho heikki at_sanbi _ac _za
_/_/_/_/_/ Associate Professor skype: heikki_lehvaslaiho
_/ _/ _/ SANBI, South African National Bioinformatics Institute
_/ _/ _/ University of Western Cape, South Africa
_/ Phone: +27 21 959 2096 FAX: +27 21 959 2512
___ _/_/_/_/_/________________________________________________________
More information about the Bioperl-l
mailing list