1 Check strict refs functionality
5 # no strict, should build & run ok.
25 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 5.
33 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 5.
42 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 6.
50 Can't use an undefined value as a SCALAR reference at - line 5.
58 Can't use an undefined value as an ARRAY reference at - line 5.
66 Can't use an undefined value as a HASH reference at - line 5.
74 Can't use an undefined value as a symbol reference at - line 5.
81 Can't use bareword ("fred") as an ARRAY ref while "strict refs" in use at - line 4.
86 my $a = fred->{barney} ;
88 Can't use bareword ("fred") as a HASH ref while "strict refs" in use at - line 4.
91 # strict refs - no error
102 # strict refs - no error
103 use strict qw(subs vars) ;
112 # strict refs - no error
121 # strict refs - no error
130 # Check runtime scope of strict refs pragma
140 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 10.
143 # Check runtime scope of strict refs pragma
153 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 8.
156 # Check runtime scope of strict refs pragma
162 $a = sub { my $c = $$b ; }
166 Can't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 8.
198 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at ./abc line 2.
199 Compilation failed in require at - line 2.
210 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at abc.pm line 2.
211 Compilation failed in require at - line 2.
212 BEGIN failed--compilation aborted at - line 2.
215 # Check scope of pragma with eval
226 # Check scope of pragma with eval
235 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 6.
238 # Check scope of pragma with eval
245 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 5.
248 # Check scope of pragma with eval
257 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 9.
260 # Check scope of pragma with eval
270 # Check scope of pragma with eval
277 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at (eval 1) line 3.
280 # Check scope of pragma with eval
286 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at (eval 1) line 2.
289 # Check scope of pragma with eval
297 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 8.