X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fversion.pm;h=85be41d6872a6a1095b33ed9205d44300b797608;hb=ec488c7f13c4270af54fc91b6664495b5831b7ec;hp=9443a6ac9908cb8354940df3761dbbabf7f5a77f;hpb=43eaf59d25f22137101201b9df220432655a6cc2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/version.pm b/lib/version.pm index 9443a6a..85be41d6 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.70"; $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;