have Makefile.PL check for dollar signs
authorMichael Hafen <mdhafen@tech.washk12.org>
Wed, 18 Nov 2009 21:38:49 +0000 (14:38 -0700)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 18 Feb 2010 18:42:33 +0000 (13:42 -0500)
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>

Makefile.PL

index 5355c43..9adf81b 100644 (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;
 }