summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-20 05:21:41 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-20 05:29:45 -0800
commit26334c4df83abbbbf5402fb36a65d890ae6983d9 (patch)
tree50725487fc357704387346d63a01a43f8b83ca26 /dump.c
parentff94d24c25095d8424bbf5d982a0bc5c1e6fbece (diff)
downloadperl-26334c4df83abbbbf5402fb36a65d890ae6983d9.tar.gz
dump.c: Suppress extra sigils in multideref dump
This: my $z; my @y; $y[$z] included <+> multideref($@y[$$z]) sK ->6 in its -MO=Concise output.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 853ca23dd7..f888a48be7 100644
--- a/dump.c
+++ b/dump.c
@@ -2288,7 +2288,9 @@ S_append_padvar(pTHX_ PADOFFSET off, CV *cv, SV *out, int n,
if (namepad && (sv = padnamelist_fetch(namepad, off + i)))
{
STRLEN cur = SvCUR(out);
- Perl_sv_catpvf(aTHX_ out, "[%"PNf, PNfARG(sv));
+ Perl_sv_catpvf(aTHX_ out, "[%"UTF8f,
+ UTF8fARG(1, PadnameLEN(sv) - 1,
+ PadnamePV(sv) + 1));
if (is_scalar)
SvPVX(out)[cur] = '$';
}