have Makefile.PL check for dollar signs

Make treats any $ as an internal variable except $$.  So have Makefile.PL when
getting values turn any $ into $$.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Michael Hafen 2009-11-18 14:38:49 -07:00 committed by Galen Charlton
parent b4ce64bff4
commit 40980d44d6

View file

@ -1195,6 +1195,7 @@ sub _get_value {
# take value from install log if present
if (exists $install_log_values{$key}) {
$install_log_values{$key} =~ s/\$/\$\$/g;
return $install_log_values{$key};
}
@ -1214,6 +1215,7 @@ sub _get_value {
$retry_msg .= _add_valid_values_disp($key, $valid_values);
$val = prompt($retry_msg, $default);
}
$val =~ s/\$/\$\$/g;
return $val;
}