summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/Command
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-08 13:07:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-08 13:07:25 +0000
commita592ba15a3fa6c61975e7fb62c50cd2f64c750d6 (patch)
tree82a837ea03710de3dc0a81d0b9c3431527057b16 /lib/ExtUtils/Command
parent5de3775cb1f5ef0af0777e63f1032a2b570b9dd9 (diff)
downloadperl-a592ba15a3fa6c61975e7fb62c50cd2f64c750d6.tar.gz
Upgrade to MakeMaker 6.43_01
p4raw-id: //depot/perl@33250
Diffstat (limited to 'lib/ExtUtils/Command')
-rw-r--r--lib/ExtUtils/Command/MM.pm26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/ExtUtils/Command/MM.pm b/lib/ExtUtils/Command/MM.pm
index 48a66cedb9..03da0dd939 100644
--- a/lib/ExtUtils/Command/MM.pm
+++ b/lib/ExtUtils/Command/MM.pm
@@ -1,15 +1,16 @@
package ExtUtils::Command::MM;
+require 5.006;
+
use strict;
+use warnings;
-require 5.005_03;
require Exporter;
-use vars qw($VERSION @ISA @EXPORT);
-@ISA = qw(Exporter);
+our @ISA = qw(Exporter);
-@EXPORT = qw(test_harness pod2man perllocal_install uninstall
- warn_if_old_packlist);
-$VERSION = '6.42';
+our @EXPORT = qw(test_harness pod2man perllocal_install uninstall
+ warn_if_old_packlist);
+our $VERSION = '6.43_01';
my $Is_VMS = $^O eq 'VMS';
@@ -89,14 +90,14 @@ If no arguments are given to pod2man it will read from @ARGV.
=cut
sub pod2man {
+ local @ARGV = @_ ? @_ : @ARGV;
+
require Pod::Man;
require Getopt::Long;
- my %options = ();
-
# We will cheat and just use Getopt::Long. We fool it by putting
# our arguments into @ARGV. Should be safe.
- local @ARGV = @_ ? @_ : @ARGV;
+ my %options = ();
Getopt::Long::config ('bundling_override');
Getopt::Long::GetOptions (\%options,
'section|s=s', 'release|r=s', 'center|c=s',
@@ -193,7 +194,8 @@ sub perllocal_install {
# VMS feeds args as a piped file on STDIN since it usually can't
# fit all the args on a single command line.
- @ARGV = split /\|/, <STDIN> if $Is_VMS;
+ my @mod_info = $Is_VMS ? split /\|/, <STDIN>
+ : @ARGV;
my $pod;
$pod = sprintf <<POD, scalar localtime;
@@ -204,7 +206,7 @@ sub perllocal_install {
POD
do {
- my($key, $val) = splice(@ARGV, 0, 2);
+ my($key, $val) = splice(@mod_info, 0, 2);
$pod .= <<POD
=item *
@@ -213,7 +215,7 @@ POD
POD
- } while(@ARGV);
+ } while(@mod_info);
$pod .= "=back\n\n";
$pod =~ s/^ //mg;