Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RT-92547 remove sub pototypes #24

Merged
merged 1 commit into from Mar 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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