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
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Deparse $#{/} correctly
[perl5.git]
/
dist
/
B-Deparse
/
Deparse.pm
diff --git
a/dist/B-Deparse/Deparse.pm
b/dist/B-Deparse/Deparse.pm
index
abe18a8
..
7936fcd
100644
(file)
--- a/
dist/B-Deparse/Deparse.pm
+++ b/
dist/B-Deparse/Deparse.pm
@@
-1302,6
+1302,9
@@
sub stash_variable {
return "$prefix\{$name}";
}
}
+ if ($prefix eq '$#' && $name =~ /^[^\w+-]$/) {
+ return "\$#{$name}";
+ }
my $v = ($prefix eq '$#' ? '@' : $prefix) . $name;
return $prefix .$self->{'curstash'}.'::'. $name if $self->lex_in_scope($v);