add some comments
[bioperl-live.git] / Bio / Root / Version.pm
blobcf3c860bf93143db0fee2bef99d18b9728fddedd
2 # BioPerl module for Bio::Root::Version
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Aaron Mackey <amackey@virginia.edu>
8 # Copyright Aaron Mackey
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
14 =head1 NAME
16 Bio::Root::Version - provide global, distribution-level versioning
18 =head1 SYNOPSIS
20 package Bio::Tools::NiftyFeature;
21 require Bio::Root::RootI;
24 # later, in client code:
25 package main;
26 use Bio::Tools::NiftyFeature 3.14;
29 ## alternative usage: NiftyFeature defines own $VERSION:
30 package Bio::Tools::NiftyFeature;
31 my $VERSION = 9.8;
33 # later in client code:
34 package main;
36 # ensure we're using an up-to-date BioPerl distribution
37 use Bio::Perl 3.14;
39 # NiftyFeature has its own versioning scheme:
40 use Bio::Tools::NiftyFeature 9.8;
42 =head1 DESCRIPTION
44 This module provides a mechanism by which all other BioPerl modules
45 can share the same $VERSION, without manually synchronizing each file.
47 Bio::Root::RootI itself uses this module, so any module that directly
48 (or indirectly) uses Bio::Root::RootI will get a global $VERSION
49 variable set if it's not already.
52 =head1 FEEDBACK
54 =head2 Mailing Lists
56 User feedback is an integral part of the evolution of this and other
57 Bioperl modules. Send your comments and suggestions preferably to one
58 of the Bioperl mailing lists. Your participation is much appreciated.
60 bioperl-l@bioperl.org - General discussion
61 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
63 =head2 Support
65 Please direct usage questions or support issues to the mailing list:
67 I<bioperl-l@bioperl.org>
69 rather than to the module maintainer directly. Many experienced and
70 reponsive experts will be able look at the problem and quickly
71 address it. Please include a thorough description of the problem
72 with code and data examples if at all possible.
74 =head2 Reporting Bugs
76 Report bugs to the Bioperl bug tracking system to help us keep track
77 the bugs and their resolution. Bug reports can be submitted via the
78 web:
80 https://redmine.open-bio.org/projects/bioperl/
82 =head1 AUTHOR - Aaron Mackey
84 Email amackey@virginia.edu
86 =head1 APPENDIX
88 The rest of the documentation details each of the object
89 methods. Internal methods are usually preceded with a _
91 =cut
94 # Let the code begin...
97 package Bio::Root::Version;
98 use strict;
100 our $VERSION = '1.006900'; # pre-1.7
101 $VERSION = eval $VERSION;
103 sub import {
104 # try to handle multiple levels of inheritance:
105 my $i = 0;
106 my $pkg = caller($i);
107 no strict 'refs';
108 while ($pkg) {
109 if ($pkg =~ m/^Bio::/o &&
110 not defined ${$pkg . "::VERSION"}) {
111 ${$pkg . "::VERSION"} = $VERSION;
113 $pkg = caller(++$i);
118 __END__