diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-16 16:51:08 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-16 16:51:08 +0000 |
commit | f180df804d1cde858e3e94db2f42efcc697d07d9 (patch) | |
tree | 57059df321dc566c4fb334953a3265cfeb2f679e /t/pragma/strict-vars | |
parent | cc0fca54a8335062a27e12be15bddf587362a0b0 (diff) | |
download | perl-f180df804d1cde858e3e94db2f42efcc697d07d9.tar.gz |
introduce illegal symbols into null package so that gv_fetchpv(...,TRUE)
always returns a valid GV even when the symbol is trapped by strictures
(avoids coredumps)
TODO: the C<package;> hack needs similar treatment
p4raw-id: //depot/perl@5908
Diffstat (limited to 't/pragma/strict-vars')
-rw-r--r-- | t/pragma/strict-vars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/pragma/strict-vars b/t/pragma/strict-vars index ae09742fab..2ccfef7105 100644 --- a/t/pragma/strict-vars +++ b/t/pragma/strict-vars @@ -55,7 +55,7 @@ Execution of - aborted due to compilation errors. # strict vars - error use strict 'vars' ; -$fred ; +<$fred> ; EXPECT Global symbol "$fred" requires explicit package name at - line 4. Execution of - aborted due to compilation errors. |