summaryrefslogtreecommitdiff
path: root/lib/Config.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-13 15:59:58 +0100
committerJesse Vincent <jesse@bestpractical.com>2009-10-16 12:30:16 -0400
commitaf224ca80759294e384971bba25264ff216c7223 (patch)
tree978cf82211f65138c786af048b6eb1d370a8eade /lib/Config.t
parentf652f7a555220290c8a3a6c757a06871483f14f9 (diff)
downloadperl-af224ca80759294e384971bba25264ff216c7223.tar.gz
Can't use C<shift INC> to avoid @ in a commandline now, so use eval and octal.
Diffstat (limited to 'lib/Config.t')
-rw-r--r--lib/Config.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Config.t b/lib/Config.t
index da84b78fa6..922f8264fd 100644
--- a/lib/Config.t
+++ b/lib/Config.t
@@ -242,11 +242,12 @@ foreach my $pain ($first, @virtual) {
# Check that config entries appear correctly in @INC
# TestInit.pm has probably already messed with our @INC
# This little bit of evil is to avoid a @ in the program, in case it confuses
-# shell 1 liners. Perl 1 rules.
+# shell 1 liners. We used to use a perl 1-ism, until that was deprecated, so
+# now some octal in an eval.
my ($path, $ver, @orig_inc)
= split /\n/,
runperl (nolib=>1,
- prog=>'print qq{$^X\n$]\n}; print qq{$_\n} while $_ = shift INC');
+ prog=>'print qq{$_\n} foreach $^X, $], eval qq{\100INC}');
die "This perl is $] at $^X; other perl is $ver (at $path) "
. '- failed to find this perl' unless $] eq $ver;