Message-ID: <
44724453.5090606@rowman.com>
p4raw-id: //depot/perl@28288
use vars qw(@ISA $VERSION $CLASS *qv);
-$VERSION = "0.60_01";
+$VERSION = "0.60_02";
$VERSION = eval($VERSION);
$CLASS = 'version';
no strict 'refs';
*{$callpkg."::qv"} =
- sub {return bless version::qv(shift), $class };
+ sub {return bless version::qv(shift), $class }
+ unless $callpkg->can('qv');
+
}
1;
like($@, qr/Invalid version object/,
"Bad subclass vcmp");
+# dummy up a redundant call to satify David Wheeler
+local $SIG{__WARN__} = sub { die $_[0] };
+eval 'use version;';
+unlike ($@, qr/^Subroutine main::qv redefined/,
+ "Only export qv once per package (to prevent redefined warnings).");
+
sub BaseTests {
my ($CLASS, $no_qv) = @_;