1 Check strict vars functionality
5 # no strict, should build & run ok.
14 use strict qw(subs refs) ;
27 # strict vars - no error
29 use vars qw( $freddy) ;
43 Global symbol "fred" requires explicit package name at - line 4.
44 Execution of - aborted due to compilation errors.
51 Global symbol "fred" requires explicit package name at - line 4.
52 Execution of - aborted due to compilation errors.
59 Global symbol "fred" requires explicit package name at - line 4.
60 Execution of - aborted due to compilation errors.
63 # Check compile time scope of strict vars pragma
71 Variable "$joe" is not imported at - line 8.
72 Global symbol "joe" requires explicit package name at - line 8.
73 Execution of - aborted due to compilation errors.
76 # Check compile time scope of strict vars pragma
84 Global symbol "joe" requires explicit package name at - line 6.
85 Execution of - aborted due to compilation errors.
116 Variable "$joe" is not imported at ./abc line 2.
117 Global symbol "joe" requires explicit package name at ./abc line 2.
118 Compilation failed in require at - line 2.
129 Variable "$joe" is not imported at abc.pm line 2.
130 Global symbol "joe" requires explicit package name at abc.pm line 2.
131 Compilation failed in require at - line 2.
132 BEGIN failed--compilation aborted at - line 2.
135 # Check scope of pragma with eval
146 # Check scope of pragma with eval
155 Global symbol "joe" requires explicit package name at - line 6.
156 Execution of - aborted due to compilation errors.
159 # Check scope of pragma with eval
167 Global symbol "joe" requires explicit package name at - line 5.
168 Execution of - aborted due to compilation errors.
171 # Check scope of pragma with eval
180 Variable "$joe" is not imported at - line 9.
181 Global symbol "joe" requires explicit package name at - line 9.
182 Execution of - aborted due to compilation errors.
185 # Check scope of pragma with eval
195 # Check scope of pragma with eval
202 Global symbol "joe" requires explicit package name at (eval 1) line 3.
205 # Check scope of pragma with eval
211 Global symbol "joe" requires explicit package name at (eval 1) line 2.
214 # Check scope of pragma with eval
222 Global symbol "joe" requires explicit package name at - line 8.
223 Execution of - aborted due to compilation errors.