Skip to content

Commit 7c59445

Browse files
committed
Add usage error to pure-perl vcmp
1 parent 61f86fa commit 7c59445

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vperl/vpp.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ sub stringify {
777777

778778
sub vcmp {
779779
my ($left,$right,$swap) = @_;
780+
die "Usage: version::vcmp(lobj, robj, ...)" if @_ < 2;
780781
my $class = ref($left);
781782
unless ( UNIVERSAL::isa($right, $class) ) {
782783
$right = $class->new($right);

0 commit comments

Comments
 (0)