This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3fd779
)
Re: [perl #18927] barewords with no errors
author
Abe Timmerman
<abe@ztreet.demon.nl>
Sun, 8 Dec 2002 17:12:56 +0000
(18:12 +0100)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sun, 8 Dec 2002 22:10:45 +0000
(22:10 +0000)
Message-Id: <
200212081712
.56102.abe@ztreet.demon.nl>
p4raw-id: //depot/perl@18265
t/lib/strict/subs
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/strict/subs
b/t/lib/strict/subs
index
f6e05b3
..
4516de7
100644
(file)
--- a/
t/lib/strict/subs
+++ b/
t/lib/strict/subs
@@
-354,3
+354,10
@@
print "" if BAREWORD;
EXPECT
Bareword "BAREWORD" not allowed while "strict subs" in use at - line 5.
Execution of - aborted due to compilation errors.
+########
+# Ticket: 18927
+use strict 'subs';
+print 1..1, bad;
+EXPECT
+Bareword "bad" not allowed while "strict subs" in use at - line 3.
+Execution of - aborted due to compilation errors.