7 use vars qw(@ISA $VERSION $CLASS *qv);
13 eval "use version::vxs $VERSION";
14 if ( $@ ) { # don't have the XS version installed
15 eval "use version::vpp $VERSION"; # don't tempt fate
17 push @ISA, "version::vpp";
18 *version::qv = \&version::vpp::qv;
20 else { # use XS module
21 push @ISA, "version::vxs";
22 *version::qv = \&version::vxs::qv;
25 # Preloaded methods go here.
28 my $callpkg = caller();
32 sub {return bless version::qv(shift), $class }
33 unless defined(&{"$callpkg\::qv"});
35 # if (@_) { # must have initialization on the use line
36 # if ( defined $_[2] ) { # CVS style
37 # $_[0] = version::qv($_[2]);
40 # $_[0] = version->new($_[1]);