[Bioperl-l] Bioperl versioning
Sendu Bala
bix at sendu.me.uk
Wed Nov 8 11:12:12 UTC 2006
Lincoln Stein wrote:
> Are you going to go ahead with 1.52_XX ? If so, I will code GBrowse to
> look for 1.52 or higher.
You should do the equivalent of
use Bio::Root::Version 1.5.2;
Eg.
unless (eval{"require $Bio::Root::Version;" ||
${Bio::Root::Version::VERSION'} < 1.005002) {
#complain
}
Since most core modules get their version from Bio::Root::Version, you
could also check the core module you're actually using in GBrowse,
instead of asking Bio::Root::Version itself.
So, if you do actually need to use Bio::Whatever in your module, the
best thing to do is say:
use Bio::Whatever 1.5.2;
More information about the Bioperl-l
mailing list