3 substr outside of string
4 $a = "ab" ; $b = substr($a, 4,5) ;
6 Attempt to use reference as lvalue in substr
7 $a = "ab" ; $b = \$a ; substr($b, 1,1) = $b
9 Use of uninitialized value in ref-to-glob cast [pp_rv2gv()]
12 Use of uninitialized value in scalar dereference [pp_rv2sv()]
13 my $a = undef ; my $b = $$a
15 Odd number of elements in hash list
18 Explicit blessing to '' (assuming package main)
21 Constant subroutine %s undefined
22 sub foo () { 1 }; undef &foo;
24 Constant subroutine (anonymous) undefined
25 $foo = sub () { 3 }; undef &$foo;
29 use warnings 'substr' ;
31 $b = substr($a, 4,5) ;
32 no warnings 'substr' ;
34 $b = substr($a, 4,5) ;
36 substr outside of string at - line 4.
39 use warnings 'substr' ;
42 substr($b, 1,1) = "ab" ;
43 no warnings 'substr' ;
44 substr($b, 1,1) = "ab" ;
46 Attempt to use reference as lvalue in substr at - line 5.
49 use warnings 'uninitialized' ;
51 no warnings 'uninitialized' ;
54 Use of uninitialized value in ref-to-glob cast at - line 3.
57 use warnings 'uninitialized';
59 no warnings 'uninitialized' ;
62 Use of uninitialized value in scalar dereference at - line 3.
70 Odd number of elements in anonymous hash at - line 3.
78 Explicit blessing to '' (assuming package main) at - line 3.
88 Constant subroutine foo undefined at - line 4.
98 Constant subroutine (anonymous) undefined at - line 4.
113 Negative repeat count at - line 3.