-#!./perl
+#!./perl -w
BEGIN {
require 5.004;
@INC = 'lib';
$ENV{PERL5LIB} = 'lib';
- # This needs to be at BEGIN time, before the use Config; below.
+ # This needs to be at BEGIN time, before any use of Config
require './install_lib.pl';
}
%opts $packlist);
my ($dostrip, $versiononly, $force,
$otherperls, $archname, $nwinstall, $nopods);
+# Not sure how easy it would be to refactor to remove the need for local $depth
+# below
use vars qw /$depth/;
BEGIN {
my $mainperldir = "/usr/bin";
my $exe_ext = $Config{exe_ext};
-# Allow ``make install PERLNAME=something_besides_perl'':
+# Allow "make install PERLNAME=something_besides_perl":
my $perl = defined($ENV{PERLNAME}) ? $ENV{PERLNAME} : 'perl';
# This is the base used for versioned names, like "perl5.6.0".
}
$otherperls = 1;
+# Consider refactoring this to use Getopt::Long once Getopt::Long's planned
+# feature is implemented, to distinguish + and - options.
while (@ARGV) {
$opts{notify} = 1 if $ARGV[0] eq '-n';
$dostrip = 1 if $ARGV[0] eq '-s';