diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-20 05:21:41 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-20 05:29:45 -0800 |
commit | 26334c4df83abbbbf5402fb36a65d890ae6983d9 (patch) | |
tree | 50725487fc357704387346d63a01a43f8b83ca26 /dump.c | |
parent | ff94d24c25095d8424bbf5d982a0bc5c1e6fbece (diff) | |
download | perl-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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] = '$'; } |