1N/ACheck strict subs functionality
1N/A# no strict, should build & run ok.
1N/Ause strict qw(refs vars);
1N/A# strict subs - error
1N/ABareword "xyz" not allowed while "strict subs" in use at - line 5.
1N/AExecution of - aborted due to compilation errors.
1N/A# strict subs - error
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 4.
1N/AExecution of - aborted due to compilation errors.
1N/A# strict subs - error
1N/ABareword "Z" not allowed while "strict subs" in use at - line 4.
1N/ABareword "A" not allowed while "strict subs" in use at - line 4.
1N/AExecution of - aborted due to compilation errors.
1N/A# strict subs - error
1N/ABareword "Y" not allowed while "strict subs" in use at - line 4.
1N/ABareword "B" not allowed while "strict subs" in use at - line 4.
1N/AExecution of - aborted due to compilation errors.
1N/A# strict subs - error
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 4.
1N/AExecution of - aborted due to compilation errors.
1N/A# strict subs - no error
1N/A# Check compile time scope of strict subs pragma
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 8.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check compile time scope of strict subs pragma
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 6.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check compile time scope of strict vars pragma
1N/AVariable "$joe" is not imported at - line 8.
1N/AGlobal symbol "$joe" requires explicit package name at - line 8.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check compile time scope of strict vars pragma
1N/AGlobal symbol "$joe" requires explicit package name at - line 6.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check runtime scope of strict refs pragma
1N/ACan't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 10.
1N/A# Check runtime scope of strict refs pragma
1N/ACan't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 8.
1N/A# Check runtime scope of strict refs pragma
1N/A $a = sub { my $c = $$b ; }
1N/ACan't use string ("fred") as a SCALAR ref while "strict refs" in use at - line 8.
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 3.
1N/AExecution of - aborted due to compilation errors.
1N/ABareword "Fred" not allowed while "strict subs" in use at ./abc line 2.
1N/ACompilation failed in require at - line 2.
1N/ABareword "Fred" not allowed while "strict subs" in use at
abc.pm line 2.
1N/ACompilation failed in require at - line 2.
1N/ABEGIN failed--compilation aborted at - line 2.
1N/A# Check scope of pragma with eval
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 6.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 5.
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 8.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 9.
1N/AExecution of - aborted due to compilation errors.
1N/A# Check scope of pragma with eval
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at (eval 1) line 3.
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at (eval 1) line 2.
1N/A# Check scope of pragma with eval
1N/ABareword "Fred" not allowed while "strict subs" in use at - line 8.
1N/AExecution of - aborted due to compilation errors.
1N/A# see if Foo->Bar(...) etc work under strictures
1N/Apackage Foo; sub Bar { print "@_\n" }
1N/A# Check that barewords on the RHS of a regex match are caught
1N/ABareword "foo" not allowed while "strict subs" in use at - line 4.
1N/AExecution of - aborted due to compilation errors.
1N/Amy $abc = XYZ ? 1 : 0;
1N/ABareword "XYZ" not allowed while "strict subs" in use at - line 5.
1N/AExecution of - aborted due to compilation errors.
1N/Aprint "" if BAREWORD;
1N/ABareword "BAREWORD" not allowed while "strict subs" in use at - line 5.
1N/AExecution of - aborted due to compilation errors.
1N/ABareword "bad" not allowed while "strict subs" in use at - line 3.
1N/AExecution of - aborted due to compilation errors.
1N/Aprint "" if BAREWORD;
1N/ABareword "BAREWORD" not allowed while "strict subs" in use at - line 3.
1N/AExecution of - aborted due to compilation errors.
1N/A# [perl #26910] hints not propagated into (?{...})
1N/ABareword "foo" not allowed while "strict subs" in use at (re_eval 1) line 1.
1N/ACompilation failed in regexp at - line 3.
1N/A# [perl #27628] strict 'subs' didn't warn on bareword array index
1N/ABareword "FOO" not allowed while "strict subs" in use at - line 3.
1N/AExecution of - aborted due to compilation errors.
1N/ABareword "FOO" not allowed while "strict subs" in use at - line 2.
1N/AExecution of - aborted due to compilation errors.