diff options
Diffstat (limited to 't/pragma/strict-vars')
-rw-r--r-- | t/pragma/strict-vars | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/pragma/strict-vars b/t/pragma/strict-vars index 9352c4b04c..954d1e5ab4 100644 --- a/t/pragma/strict-vars +++ b/t/pragma/strict-vars @@ -27,6 +27,15 @@ EXPECT # strict vars - no error use strict 'vars' ; use vars qw( $freddy) ; +BEGIN { *freddy = \$joe::shmoe; } +$freddy = 2 ; +EXPECT + +######## + +# strict vars - no error +use strict 'vars' ; +use vars qw( $freddy) ; local $abc::joe ; my $fred ; my $b = \$fred ; |