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:
eb2aae6
)
minor qr// fix
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 20 Dec 2001 22:53:34 +0000
(23:53 +0100)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 20 Dec 2001 20:53:42 +0000
(20:53 +0000)
Message-ID: <
20011220225334
.A735@rafael>
p4raw-id: //depot/perl@13821
ext/B/B/Deparse.pm
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B/Deparse.pm
b/ext/B/B/Deparse.pm
index
fd88191
..
7bf95df
100644
(file)
--- a/
ext/B/B/Deparse.pm
+++ b/
ext/B/B/Deparse.pm
@@
-3158,10
+3158,11
@@
sub balanced_delim {
sub single_delim {
my($q, $default, $str) = @_;
return "$default$str$default" if $default and index($str, $default) == -1;
- my($succeed, $delim);
- ($succeed, $str) = balanced_delim($str);
- return "$q$str" if $succeed;
- for $delim ('/', '"', '#') {
+ if ($q ne 'qr') {
+ (my $succeed, $str) = balanced_delim($str);
+ return "$q$str" if $succeed;
+ }
+ for my $delim ('/', '"', '#') {
return "$q$delim" . $str . $delim if index($str, $delim) == -1;
}
if ($default) {