[perl #119807] Deparse s//\(3)/e in a way that does not warn
authorFather Chrysostomos <sprout@cpan.org>
Wed, 30 Oct 2013 21:01:15 +0000 (14:01 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 30 Oct 2013 23:54:17 +0000 (16:54 -0700)
commit9f125c4af0829562ce125348509e9306cdfe96c8
tree8c75ebd939dbbafb243cd3efe9479c4f760bc36e
parente37958c391a6e98df6ad46860e1c472070272046
[perl #119807] Deparse s//\(3)/e in a way that does not warn

Code that does not warn should not be deparsed in a way that warns.
s//\3/e produces a warning about misuse of \3 where $3 is meant.
s//\(3)/e compiles to the same thing and produces no such warning.
So B::Deparse should parenthesize references to numbers in the rhs
of a substitution.
lib/B/Deparse.pm
lib/B/Deparse.t