This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [perl #18927] barewords with no errors
authorAbe Timmerman <abe@ztreet.demon.nl>
Sun, 8 Dec 2002 17:12:56 +0000 (18:12 +0100)
committerRafael 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

index f6e05b3..4516de7 100644 (file)
@@ -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.