summaryrefslogtreecommitdiff
path: root/lib/Config.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-12-09 22:51:03 +0000
committerNicholas Clark <nick@ccl4.org>2004-12-09 22:51:03 +0000
commit87ad9899a6f9c10a235352faaaa42f1776a76b78 (patch)
treee00066e73ed645ee61bdc86f7d5ff9c76a3ab27f /lib/Config.t
parentbaa9ab13cba0ca861d6fade24acd424e253ae39f (diff)
downloadperl-87ad9899a6f9c10a235352faaaa42f1776a76b78.tar.gz
Evade using @ in the 1 liner with some perl 1 syntax.
p4raw-id: //depot/perl@23634
Diffstat (limited to 'lib/Config.t')
-rw-r--r--lib/Config.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Config.t b/lib/Config.t
index a3a5e711b4..a76f2986a8 100644
--- a/lib/Config.t
+++ b/lib/Config.t
@@ -236,8 +236,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.
my ($path, $ver, @orig_inc)
- = split /\n/, runperl (nolib=>1, prog=>'print qq{$_\n} for $^X, $], @INC');
+ = split /\n/,
+ runperl (nolib=>1,
+ prog=>'print qq{$^X\n$]\n}; print qq{$_\n} while $_ = shift INC');
die "This perl is $] at $^X; other perl is $ver (at $path) "
. '- failed to find this perl' unless $] eq $ver;