diff options
Diffstat (limited to 't')
-rw-r--r-- | t/lib/strict/vars | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/lib/strict/vars b/t/lib/strict/vars index 16deab9837..87f820f1d2 100644 --- a/t/lib/strict/vars +++ b/t/lib/strict/vars @@ -439,3 +439,10 @@ qr/(?{$foo++})/; EXPECT Global symbol "$foo" requires explicit package name at (re_eval 1) line 1. Compilation failed in regexp at - line 3. +######## +# [perl #73712] 'Variable is not imported' should be suppressable +$dweck; +use strict 'vars'; +no warnings; +eval q/$dweck/; +EXPECT |