Skip to content

Commit

Permalink
Merge pull request #24 from kevindawson/RT-92547
Browse files Browse the repository at this point in the history
RT-92547 remove sub pototypes
  • Loading branch information
bingos committed Mar 17, 2014
2 parents ab299dc + d534eae commit 8f15e4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/Module/Install.pm
Expand Up @@ -433,7 +433,7 @@ END_OLD

# _version is for processing module versions (eg, 1.03_05) not
# Perl versions (eg, 5.8.1).
sub _version ($) {
sub _version {
my $s = shift || 0;
my $d =()= $s =~ /(\.)/g;
if ( $d >= 2 ) {
Expand All @@ -449,12 +449,12 @@ sub _version ($) {
return $l + 0;
}

sub _cmp ($$) {
sub _cmp {
_version($_[1]) <=> _version($_[2]);
}

# Cloned from Params::Util::_CLASS
sub _CLASS ($) {
sub _CLASS {
(
defined $_[0]
and
Expand Down
4 changes: 2 additions & 2 deletions t/03_autoinstall.t
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!perl

use strict;
BEGIN {
Expand All @@ -22,7 +22,7 @@ my @prompts = qw/y n n y y/;

use ExtUtils::MakeMaker;
sub ExtUtils::MakeMaker::WriteMakefile { $mm_args = {@_} }
sub ExtUtils::MakeMaker::prompt ($;$) { return 'n' }
sub ExtUtils::MakeMaker::prompt { return 'n' }

# tiehandle trick to intercept STDOUT.
sub PRINT { my $self = shift; $$self .= join '', @_; }
Expand Down

0 comments on commit 8f15e4b

Please sign in to comment.