[Bioperl-l] argument checking

Richard Adams Richard.Adams at ed.ac.uk
Fri Oct 1 06:08:13 EDT 2004

I was wondering what developers thought about a generic argument 
checking method, say in Bio::Root::Root.
Obviously the world has continued turning without it since BioPerl's 
inception but it might
save  quite few lines of code throughout the whole package.
What I'm thinking of is

e.g., in usage
sub x {
my ($self, $arg1, $arg2) = @_;
$self->check_args('Bio::SeqI' => $arg1,
                                'array',       => $arg2);
##.. rest of method

Apologies if there is this functionality lurking somewhere and I've not 
found it yet.


Dr Richard Adams
Psychiatric Genetics Group,
Medical Genetics,
Molecular Medicine Centre,
Western General Hospital,
Crewe Rd West,
Edinburgh UK

Tel: 44 131 651 1084
richard.adams at ed.ac.uk

More information about the Bioperl-l mailing list