1 package Bio
::Root
::Version
;
7 Bio::Root::Version - don't use, get version from each module
11 package Bio::Tools::NiftyFeature;
12 require Bio::Root::RootI;
14 # later, in client code:
16 use Bio::Tools::NiftyFeature 3.14;
18 ## alternative usage: NiftyFeature defines own $VERSION:
19 package Bio::Tools::NiftyFeature;
22 # later in client code:
25 # ensure we're using an up-to-date BioPerl distribution
28 # NiftyFeature has its own versioning scheme:
29 use Bio::Tools::NiftyFeature 9.8;
33 This module provides a mechanism by which all other BioPerl modules
34 can share the same $VERSION, without manually synchronizing each file.
36 Bio::Root::RootI itself uses this module, so any module that directly
37 (or indirectly) uses Bio::Root::RootI will get a global $VERSION
38 variable set if it's not already.
40 =head1 AUTHOR Aaron Mackey
45 # try to handle multiple levels of inheritance:
50 if ( $pkg =~ m/^Bio::/o
51 and not defined ${$pkg . "::VERSION"}
53 ${$pkg . "::VERSION"} = $Bio::Root
::Version
::VERSION
;