This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d26cb
)
lib/B/Deparse.pm: Add comment
author
Karl Williamson
<khw@cpan.org>
Tue, 30 Dec 2014 21:13:34 +0000
(14:13 -0700)
committer
Karl Williamson
<khw@cpan.org>
Wed, 31 Dec 2014 04:18:48 +0000
(21:18 -0700)
lib/B/Deparse.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/B/Deparse.pm
b/lib/B/Deparse.pm
index
668e6bd
..
7ae8ccc
100644
(file)
--- a/
lib/B/Deparse.pm
+++ b/
lib/B/Deparse.pm
@@
-4597,7
+4597,8
@@
sub escape_str { # ASCII, UTF8
my($str) = @_;
$str =~ s/(.)/ord($1) > 255 ? sprintf("\\x{%x}", ord($1)) : $1/eg;
$str =~ s/\a/\\a/g;
-# $str =~ s/\cH/\\b/g; # \b means something different in a regex
+# $str =~ s/\cH/\\b/g; # \b means something different in a regex; and \cH
+ # isn't a backspace in EBCDIC
$str =~ s/\t/\\t/g;
$str =~ s/\n/\\n/g;
$str =~ s/\e/\\e/g;