Re: [PATCH B::Deparse] fix string uninterpretation
Robin Houston [Thu, 26 Apr 2001 20:34:29 +0000 (21:34 +0100)]
Message-ID: <20010426203429.A28261@puffinry.freeserve.co.uk>

Hashes do not interpolate.

p4raw-id: //depot/perl@9860

ext/B/B/Deparse.pm

index 7f6a321..f8f9014 100644 (file)
@@ -2754,14 +2754,14 @@ sub pp_enterwrite { unop(@_, "write") }
 # but not character escapes
 sub uninterp {
     my($str) = @_;
-    $str =~ s/(^|\G|[^\\])((?:\\\\)*)([\$\%\@]|\\[uUlLQE])/$1$2\\$3/g;
+    $str =~ s/(^|\G|[^\\])((?:\\\\)*)([\$\@]|\\[uUlLQE])/$1$2\\$3/g;
     return $str;
 }
 
 # the same, but treat $|, $), $( and $ at the end of the string differently
 sub re_uninterp {
     my($str) = @_;
-    $str =~ s/(^|\G|[^\\])((?:\\\\)*)([\$\%\@](?!\||\)|\$\(|$)|\\[uUlLQE])/$1$2\\$3/g
+    $str =~ s/(^|\G|[^\\])((?:\\\\)*)([\$\@](?!\||\)|\$\(|$)|\\[uUlLQE])/$1$2\\$3/g
 ;
     return $str;
 }