From: Robin Houston Date: Thu, 26 Apr 2001 20:34:29 +0000 (+0100) Subject: Re: [PATCH B::Deparse] fix string uninterpretation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f766ba313fac08361667b38ebc1ca30388db1c3;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH B::Deparse] fix string uninterpretation Message-ID: <20010426203429.A28261@puffinry.freeserve.co.uk> Hashes do not interpolate. p4raw-id: //depot/perl@9860 --- diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm index 7f6a321..f8f9014 100644 --- a/ext/B/B/Deparse.pm +++ b/ext/B/B/Deparse.pm @@ -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; }