1 Check existing $^W functionality
6 # warnable code, warnings disabled
12 # warnable code, warnings enabled via command line switch
15 Reversed += operator at - line 3.
16 Name "main::a" used only once: possible typo at - line 3.
19 # warnable code, warnings enabled via #! line
22 Reversed += operator at - line 3.
23 Name "main::a" used only once: possible typo at - line 3.
26 # warnable code, warnings enabled via compile time $^W
30 Reversed += operator at - line 4.
31 Name "main::a" used only once: possible typo at - line 4.
34 # compile-time warnable code, warnings enabled via runtime $^W
35 # so no warning printed.
42 # warnable code, warnings enabled via runtime $^W
46 Use of uninitialized value in scalar chop at - line 4.
49 # warnings enabled at compile time, disabled at run time
57 # warnings disabled at compile time, enabled at run time
62 Use of uninitialized value in scalar chop at - line 5.
71 Use of uninitialized value in scalar chop at ./abcd line 1.
81 Use of uninitialized value in scalar chop at ./abcd line 1.
91 Use of uninitialized value in scalar chop at ./abcd line 1.
113 Use of uninitialized value in scalar chop at - line 3.
117 eval 'my $b ; chop $b ;' ;
120 Use of uninitialized value in scalar chop at (eval 1) line 1.
127 Use of uninitialized value in scalar chop at - line 4.
134 Use of uninitialized value in scalar chop at - line 4.
152 Use of uninitialized value in scalar chop at - line 5.
157 Use of uninitialized value in -e at - line 2.
176 sub fred { my $b ; chop $b ;}
184 sub fred { my $b ; chop $b ;}
189 Use of uninitialized value in scalar chop at - line 2.