summaryrefslogtreecommitdiff
path: root/lib/version.pm
blob: 7a3f14b2f5a7e7b6e3c849ec1cd0f5b5a18d0d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!perl -w
package version;

use 5.005_04;
use strict;

use vars qw(@ISA $VERSION $CLASS *qv);

$VERSION = 0.73;

$CLASS = 'version';

# Preloaded methods go here.
sub import {
    my ($class) = @_;
    my $callpkg = caller();
    no strict 'refs';
    
    *{$callpkg."::qv"} = 
	    sub {return bless version::qv(shift), $class }
	unless defined (&{"$callpkg\::qv"});

}

1;