7 use vars qw(@ISA $VERSION $CLASS *declare *qv);
13 # Preloaded methods go here.
18 # Set up any derived class
19 unless ($class eq 'version') {
21 *{$class.'::declare'} = \&version::declare;
22 *{$class.'::qv'} = \&version::qv;
26 if (@_) { # any remaining terms are arguments
27 map { $args{$_} = 1 } @_
29 else { # no parameters at all on use line
33 'UNIVERSAL::VERSION' => 1,
37 my $callpkg = caller();
39 if (exists($args{declare})) {
40 *{$callpkg."::declare"} =
41 sub {return $class->declare(shift) }
42 unless defined(&{$callpkg.'::declare'});
45 if (exists($args{qv})) {
47 sub {return $class->qv(shift) }
48 unless defined(&{"$callpkg\::qv"});
51 if (exists($args{'VERSION'})) {
52 *{$callpkg."::VERSION"} = \&version::_VERSION;