This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Patch from MHX to change the WriteConstant()'s documentation to note
[perl5.git] / lib / version.pm
index dcf5804..f05d20a 100644 (file)
@@ -6,19 +6,20 @@ use strict;
 
 use vars qw(@ISA $VERSION $CLASS *qv);
 
-$VERSION = "0.60_01";
-$VERSION = eval($VERSION);
+$VERSION = 0.74;
 
 $CLASS = 'version';
 
 # Preloaded methods go here.
 sub import {
-    my ($class, @args) = @_;
+    my ($class) = @_;
     my $callpkg = caller();
     no strict 'refs';
     
     *{$callpkg."::qv"} = 
-           sub {return bless version::qv(shift), $class };
+           sub {return bless version::qv(shift), $class }
+       unless defined (&{"$callpkg\::qv"});
+
 }
 
 1;