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