diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-03-15 23:02:49 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-03-15 23:02:49 +0000 |
commit | 86ef366e59c075737dda06eda5c86422f489d06f (patch) | |
tree | bd1dea577905d9dcd237308e6eb25540a7712a87 /configpm | |
parent | ce046328943dbedeac116a3b3c08bb7bd02dd56c (diff) | |
download | perl-86ef366e59c075737dda06eda5c86422f489d06f.tar.gz |
Make the original versions of relocated paths available from
%Config::Config with the prefix "raw_". Not sure if "raw_" is the
best choice.
p4raw-id: //depot/perl@27513
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -443,7 +443,9 @@ if ($Common{byteorder}) { if (@need_relocation) { print CONFIG_HEAVY 'foreach my $what (qw(', join (' ', @need_relocation), ")) {\n", <<'EOT'; - s/^($what=)(['"])(.*?)\2/$1 . $2 . relocate_inc($3) . $2/me; + s<^($what=)(['"])(.*?)\2> + <$1 . $2 . relocate_inc($3) . $2 . "\n" . + 'raw_' . $1 . $2 . $3 . $2>me; } EOT # Currently it only makes sense to do the ... relocation on Unix, so there's |