1 gv.c AOK 2 3 Can't locate package %s for @%s::ISA 4 @ISA = qw(Fred); joe() 5 6 $# is no longer supported 7 $* is no longer supported 8 9 $a = ${"#"} ; 10 $a = ${"*"} ; 11 12 Name "main::a" used only once: possible typo 13 14 Mandatory Warnings ALL TODO 15 ------------------ 16 17 Had to create %SVf unexpectedly [gv_fetchpv] 18 Attempt to free unreferenced glob pointers [gp_free] 19 20__END__ 21# gv.c 22use warnings 'syntax' ; 23@ISA = qw(Fred); joe() 24EXPECT 25Can't locate package Fred for @main::ISA at - line 3. 26Undefined subroutine &main::joe called at - line 3. 27######## 28# gv.c 29no warnings 'syntax' ; 30@ISA = qw(Fred); joe() 31EXPECT 32Undefined subroutine &main::joe called at - line 3. 33######## 34# gv.c 35$a = ${"#"}; 36$a = ${"*"}; 37no warnings 'deprecated' ; 38$a = ${"#"}; 39$a = ${"*"}; 40EXPECT 41$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 2. 42$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 3. 43######## 44# gv.c 45$a = ${#}; 46$a = ${*}; 47no warnings 'deprecated' ; 48$a = ${#}; 49$a = ${*}; 50EXPECT 51$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 2. 52$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 3. 53######## 54# gv.c 55$a = $#; 56$a = $*; 57$# = $a; 58$* = $a; 59$a = \$#; 60$a = \$*; 61no warnings 'deprecated' ; 62$a = $#; 63$a = $*; 64$# = $a; 65$* = $a; 66$a = \$#; 67$a = \$*; 68EXPECT 69$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 2. 70$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 3. 71$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 4. 72$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 5. 73$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 6. 74$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 7. 75######## 76# gv.c 77@a = @#; 78@a = @*; 79$a = $#; 80$a = $*; 81EXPECT 82$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 4. 83$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 5. 84######## 85# gv.c 86$a = $#; 87$a = $*; 88@a = @#; 89@a = @*; 90EXPECT 91$# is no longer supported. Its use will be fatal in Perl 5.30 at - line 2. 92$* is no longer supported. Its use will be fatal in Perl 5.30 at - line 3. 93######## 94# gv.c 95$a = ${^ENCODING}; 96$a = ${^E_NCODING}; 97${^E_NCODING} = 1; # We pretend this variable never existed. 98EXPECT 99######## 100# gv.c 101use warnings 'syntax' ; 102use utf8; 103use open qw( :utf8 :std ); 104package Y; 105@ISA = qw(Fred); joe() 106EXPECT 107Can't locate package Fred for @Y::ISA at - line 6. 108Undefined subroutine &Y::joe called at - line 6. 109######## 110# gv.c 111use warnings; 112$x = 1; 113if ($x) { 114 print $y; 115} 116$a++; # These two should 117$b++; # be exempt. 118$Foo::a++; 119$Foo::b++; 120EXPECT 121Name "main::y" used only once: possible typo at - line 5. 122Use of uninitialized value $y in print at - line 5. 123######## 124# gv.c 125use warnings; 126$x = 1; 127if ($x) { 128 $x++; 129 print $y; 130} 131EXPECT 132Name "main::y" used only once: possible typo at - line 6. 133Use of uninitialized value $y in print at - line 6. 134######## 135# gv.c 136use warnings; 137$x = 0; 138if ($x) { 139 print "1\n"; 140} elsif (!$x) { 141 print $y; 142} else { 143 print "0\n"; 144} 145EXPECT 146Name "main::y" used only once: possible typo at - line 7. 147Use of uninitialized value $y in print at - line 7. 148######## 149# gv.c 150use warnings; 151$x = 0; 152if ($x) { 153 print "1\n"; 154} elsif (!$x) { 155 $x++; 156 print $y; 157} else { 158 print "0\n"; 159} 160EXPECT 161Name "main::y" used only once: possible typo at - line 8. 162Use of uninitialized value $y in print at - line 8. 163######## 164# gv.c 165use utf8; 166use open qw( :utf8 :std ); 167use warnings; 168$ㄒ = 1; 169if ($ㄒ) { 170 print $ʎ; 171} 172EXPECT 173Name "main::ʎ" used only once: possible typo at - line 7. 174Use of uninitialized value $ʎ in print at - line 7. 175######## 176# gv.c 177use utf8; 178use open qw( :utf8 :std ); 179use warnings; 180$ㄒ = 1; 181if ($ㄒ) { 182 $ㄒ++; 183 print $ʎ; 184} 185EXPECT 186Name "main::ʎ" used only once: possible typo at - line 8. 187Use of uninitialized value $ʎ in print at - line 8. 188######## 189# gv.c 190use utf8; 191use open qw( :utf8 :std ); 192use warnings; 193$ㄒ = 0; 194if ($ㄒ) { 195 print "1\n"; 196} elsif (!$ㄒ) { 197 print $ʎ; 198} else { 199 print "0\n"; 200} 201EXPECT 202Name "main::ʎ" used only once: possible typo at - line 9. 203Use of uninitialized value $ʎ in print at - line 9. 204######## 205# gv.c 206use utf8; 207use open qw( :utf8 :std ); 208use warnings; 209$ㄒ = 0; 210if ($ㄒ) { 211 print "1\n"; 212} elsif (!$ㄒ) { 213 $ㄒ++; 214 print $ʎ; 215} else { 216 print "0\n"; 217} 218EXPECT 219Name "main::ʎ" used only once: possible typo at - line 10. 220Use of uninitialized value $ʎ in print at - line 10. 221######## 222# gv.c 223use utf8; 224use open qw( :utf8 :std ); 225use warnings; 226package 팣칵ぇ; 227$ㄒ = 1; 228if ($ㄒ) { 229 print $ʎ; 230} 231EXPECT 232Name "팣칵ぇ::ʎ" used only once: possible typo at - line 8. 233Use of uninitialized value $팣칵ぇ::ʎ in print at - line 8. 234######## 235# gv.c 236use utf8; 237use open qw( :utf8 :std ); 238use warnings; 239package 팣칵ぇ; 240$ㄒ = 1; 241if ($ㄒ) { 242 $ㄒ++; 243 print $ʎ; 244} 245EXPECT 246Name "팣칵ぇ::ʎ" used only once: possible typo at - line 9. 247Use of uninitialized value $팣칵ぇ::ʎ in print at - line 9. 248######## 249# gv.c 250use utf8; 251use open qw( :utf8 :std ); 252use warnings; 253package 팣칵ぇ; 254$ㄒ = 0; 255if ($ㄒ) { 256 print "1\n"; 257} elsif (!$ㄒ) { 258 print $ʎ; 259} else { 260 print "0\n"; 261} 262EXPECT 263Name "팣칵ぇ::ʎ" used only once: possible typo at - line 10. 264Use of uninitialized value $팣칵ぇ::ʎ in print at - line 10. 265######## 266# gv.c 267use utf8; 268use open qw( :utf8 :std ); 269use warnings; 270package 팣칵ぇ; 271$ㄒ = 0; 272if ($ㄒ) { 273 print "1\n"; 274} elsif (!$ㄒ) { 275 $ㄒ++; 276 print $ʎ; 277} else { 278 print "0\n"; 279} 280EXPECT 281Name "팣칵ぇ::ʎ" used only once: possible typo at - line 11. 282Use of uninitialized value $팣칵ぇ::ʎ in print at - line 11. 283