X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fversion.pm;h=7a3f14b2f5a7e7b6e3c849ec1cd0f5b5a18d0d28;hb=4c38808d92b95edd5d3bf512019007a1e4a385d9;hp=9443a6ac9908cb8354940df3761dbbabf7f5a77f;hpb=43eaf59d25f22137101201b9df220432655a6cc2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/version.pm b/lib/version.pm index 9443a6a..7a3f14b 100644 --- a/lib/version.pm +++ b/lib/version.pm @@ -1,20 +1,25 @@ #!perl -w package version; -use 5.005_03; +use 5.005_04; use strict; -require Exporter; -use vars qw(@ISA $VERSION $CLASS @EXPORT); +use vars qw(@ISA $VERSION $CLASS *qv); -@ISA = qw(Exporter); - -@EXPORT = qw(qv); - -$VERSION = 0.50; +$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;