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.
209 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at abc.pm line 2.
210 BEGIN failed--compilation aborted at - line 2.
213 # Check scope of pragma with eval
224 # Check scope of pragma with eval
233 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 6.
236 # Check scope of pragma with eval
243 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 5.
246 # Check scope of pragma with eval
255 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 9.
258 # Check scope of pragma with eval
268 # Check scope of pragma with eval
275 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at (eval 1) line 3.
278 # Check scope of pragma with eval
284 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at (eval 1) line 2.
287 # Check scope of pragma with eval
295 Can't use string ("Fred") as a SCALAR ref while "strict refs" in use at - line 8.