Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -17561,7 +17561,7 @@ Perl_varname(pTHX_ const GV *const gv, const char gvtype, PADOFFSET targ,

gv_fullname4(name, gv, buffer, 0);

if ((unsigned int)SvPVX(name)[1] <= 26) {
if ((unsigned int)SvPVX(name)[1] <= 31) {
buffer[0] = '^';
buffer[1] = SvPVX(name)[1] + 'A' - 1;

Expand Down
4 changes: 3 additions & 1 deletion t/lib/warnings/9uninit
Original file line number Diff line number Diff line change
Expand Up @@ -1159,13 +1159,15 @@ Use of uninitialized value within %foo14 in join or string at - line 17.
use warnings 'uninitialized';
my ($v);

undef $^A; $v = $^A + ${^FOO}; # should output '^A' not chr(1)
undef $^A; $v = $^A + ${^FOO} + $^_ + ${^_FOO}; # should output '^A' not chr(1)
*GLOB1 = *GLOB2;
$v = $GLOB1 + 1;
$v = $GLOB2 + 1;
EXPECT
Use of uninitialized value $^A in addition (+) at - line 4.
Use of uninitialized value $^FOO in addition (+) at - line 4.
Use of uninitialized value $^_ in addition (+) at - line 4.
Use of uninitialized value $^_FOO in addition (+) at - line 4.
Use of uninitialized value $GLOB1 in addition (+) at - line 6.
Use of uninitialized value $GLOB2 in addition (+) at - line 7.
########
Expand Down
Loading