3 print() on unopened filehandle abc [pp_print]
4 $f = $a = "abc" ; print $f $a
6 Filehandle %s opened only for input [pp_print]
9 Filehandle %s opened only for output [pp_print]
12 print() on closed filehandle %s [pp_print]
13 close STDIN ; print STDIN "abc" ;
15 uninitialized [pp_rv2av]
16 my $a = undef ; my @b = @$a
18 uninitialized [pp_rv2hv]
19 my $a = undef ; my %b = %$a
21 Odd number of elements in hash list [pp_aassign]
24 Reference found where even-sized list expected [pp_aassign]
27 Filehandle %s opened only for output [Perl_do_readline]
31 glob failed (can't start child: %s) [Perl_do_readline] <<TODO
33 readline() on closed filehandle %s [Perl_do_readline]
34 close STDIN ; $a = <STDIN>;
36 glob failed (child exited with status %d%s) [Perl_do_readline] <<TODO
38 Deep recursion on subroutine \"%s\" [Perl_sub_crush_depth]
39 sub fred { fred() if $a++ < 200} fred()
41 Deep recursion on anonymous subroutine [Perl_sub_crush_depth]
42 $a = sub { &$a if $a++ < 200} &$a
44 Possible Y2K bug: about to append an integer to '19' [pp_concat]
49 use warnings 'unopened' ;
52 no warnings 'unopened' ;
55 print() on unopened filehandle abc at - line 4.
62 open(FOO, ">&STDOUT") and print <FOO>;
65 ####################################################################
66 # The next test is known to fail on some systems (Linux+old glibc, #
67 # old *BSDs, and NeXT, among others. #
68 # We skip it for now (on the grounds that it is "just" a warning). #
69 ####################################################################
74 Filehandle STDIN opened only for input at - line 3.
75 Filehandle STDOUT opened only for output at - line 4.
76 Filehandle STDERR opened only for output at - line 5.
77 Filehandle FOO opened only for output at - line 6.
78 Filehandle STDERR opened only for output at - line 7.
79 Filehandle FOO opened only for output at - line 8.
82 use warnings 'closed' ;
88 no warnings 'closed' ;
93 print() on closed filehandle STDIN at - line 4.
94 print() on closed filehandle STDIN at - line 6.
95 (Are you trying to call print() on dirhandle STDIN?)
98 use warnings 'uninitialized' ;
101 no warnings 'uninitialized' ;
104 Use of uninitialized value in array dereference at - line 4.
106 # pp_hot.c [pp_rv2hv]
107 use warnings 'uninitialized' ;
110 no warnings 'uninitialized' ;
113 Use of uninitialized value in hash dereference at - line 4.
115 # pp_hot.c [pp_aassign]
116 use warnings 'misc' ;
117 my %X ; %X = (1,2,3) ;
119 my %Y ; %Y = (1,2,3) ;
121 Odd number of elements in hash assignment at - line 3.
123 # pp_hot.c [pp_aassign]
124 use warnings 'misc' ;
125 my %X ; %X = [1 .. 3] ;
127 my %Y ; %Y = [1 .. 3] ;
129 Reference found where even-sized list expected at - line 3.
131 # pp_hot.c [Perl_do_readline]
132 use warnings 'closed' ;
133 close STDIN ; $a = <STDIN> ;
134 opendir STDIN, "." ; $a = <STDIN> ;
136 no warnings 'closed' ;
137 opendir STDIN, "." ; $a = <STDIN> ;
140 readline() on closed filehandle STDIN at - line 3.
141 readline() on closed filehandle STDIN at - line 4.
142 (Are you trying to call readline() on dirhandle STDIN?)
144 # pp_hot.c [Perl_do_readline]
146 my $file = "./xcv" ; unlink $file ;
147 open (FH, ">./xcv") ;
153 Filehandle FH opened only for output at - line 5.
155 # pp_hot.c [Perl_sub_crush_depth]
156 use warnings 'recursion' ;
162 local $SIG{__WARN__} = sub {
163 die "ok\n" if $_[0] =~ /^Deep recursion on subroutine "main::fred"/
170 # pp_hot.c [Perl_sub_crush_depth]
171 no warnings 'recursion' ;
177 local $SIG{__WARN__} = sub {
178 die "ok\n" if $_[0] =~ /^Deep recursion on subroutine "main::fred"/
185 # pp_hot.c [Perl_sub_crush_depth]
186 use warnings 'recursion' ;
194 Deep recursion on anonymous subroutine at - line 5.
196 # pp_hot.c [Perl_sub_crush_depth]
197 no warnings 'recursion' ;
206 # pp_hot.c [pp_concat]
210 unless ($Config{ccflags} =~ /Y2KWARN/) {
211 print "SKIPPED\n# perl not built with -DPERL_Y2KWARN";
218 $x = "19" . $yy . "\n";
220 $x = "319" . $yy . "\n";
223 $x = "19" . $yy . "\n";
225 Possible Y2K bug: about to append an integer to '19' at - line 12.
226 Possible Y2K bug: about to append an integer to '19' at - line 13.