blob: 36082b08c8fef23e84ad126e61b91558c0bfe64b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
gv.c AOK
Can't locate package %s for @%s::ISA
@ISA = qw(Fred); joe()
Use of inherited AUTOLOAD for non-method %s::%.*s() is deprecated
sub Other::AUTOLOAD { 1 } sub Other::fred {}
@ISA = qw(Other) ;
fred() ;
Use of $# is deprecated
$* is no longer supported
$a = ${"#"} ;
$a = ${"*"} ;
Mandatory Warnings ALL TODO
------------------
Had to create %s unexpectedly [gv_fetchpv]
Attempt to free unreferenced glob pointers [gp_free]
__END__
# gv.c
use warnings 'misc' ;
@ISA = qw(Fred); joe()
EXPECT
Can't locate package Fred for @main::ISA at - line 3.
Undefined subroutine &main::joe called at - line 3.
########
# gv.c
no warnings 'misc' ;
@ISA = qw(Fred); joe()
EXPECT
Undefined subroutine &main::joe called at - line 3.
########
# gv.c
sub Other::AUTOLOAD { 1 } sub Other::fred {}
@ISA = qw(Other) ;
use warnings 'deprecated' ;
fred() ;
EXPECT
Use of inherited AUTOLOAD for non-method main::fred() is deprecated at - line 5.
########
# gv.c
use warnings 'deprecated' ;
$a = ${"#"};
$a = ${"*"};
no warnings 'deprecated' ;
$a = ${"#"};
$a = ${"*"};
EXPECT
Use of $# is deprecated at - line 3.
$* is no longer supported at - line 4.
|