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 uninitialized in pp_rv2gv()
12 uninitialized in pp_rv2sv()
13 my $a = undef ; my $b = $$a
15 Odd number of elements in hash list
18 Invalid type in unpack: '%c
19 my $A = pack ("A,A", 1,2) ;
20 my @A = unpack ("A,A", "22") ;
22 Attempt to pack pointer to temporary value
25 Explicit blessing to '' (assuming package main)
28 Constant subroutine %s undefined <<<TODO
29 Constant subroutine (anonymous) undefined <<<TODO
33 Malformed UTF-8 character (not tested: difficult to produce with
38 use warnings 'substr' ;
40 $b = substr($a, 4,5) ;
41 no warnings 'substr' ;
43 $b = substr($a, 4,5) ;
45 substr outside of string at - line 4.
48 use warnings 'substr' ;
51 substr($b, 1,1) = "ab" ;
52 no warnings 'substr' ;
53 substr($b, 1,1) = "ab" ;
55 Attempt to use reference as lvalue in substr at - line 5.
58 use warnings 'uninitialized' ;
69 Odd number of elements in hash assignment at - line 3.
73 use warnings 'unpack' ;
74 my @a = unpack ("A,A", "22") ;
75 my $a = pack ("A,A", 1,2) ;
77 no warnings 'unpack' ;
78 my @b = unpack ("A,A", "22") ;
79 my $b = pack ("A,A", 1,2) ;
81 Invalid type in unpack: ',' at - line 4.
82 Invalid type in pack: ',' at - line 5.
85 use warnings 'uninitialized' ;
88 no warnings 'uninitialized' ;
91 Use of uninitialized value in scalar dereference at - line 4.
95 sub foo { my $a = "a"; return $a . $a++ . $a++ }
96 my $a = pack("p", &foo) ;
98 my $b = pack("p", &foo) ;
100 Attempt to pack pointer to temporary value at - line 4.
103 use warnings 'misc' ;
108 Explicit blessing to '' (assuming package main) at - line 3.
118 if (ord("\t") == 5) {
119 print "SKIPPED\n# Character codes differ on ebcdic machines.";
123 use warnings 'utf8' ;
131 \x80 will produce malformed UTF-8 character; use \x{80} for that at - line 10.
132 \xff will produce malformed UTF-8 character; use \x{ff} for that at - line 10.