New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stmt if BAREWORD" bypasses strict 'subs' checks #7047
Comments
From chip@tytlalCreated by chip@pobox.comThe strict 'subs' checks that make barewords illegal are apparently perl -Mstrict=subs -e 'print if foo' while this does die: perl -Mstrict=subs -e 'print if $a = foo' Only slightly embarrassing.... Perl Info
|
From @rgschip@tytlal (via RT) wrote:
as does : $ bleadperl -Mstrict=subs -we 'print if foo' But : $ perl5.8.0 -Mstrict=subs -we 'print if foo' |
The RT System itself - Status changed from 'new' to 'open' |
From @gisleWhy would running with -w trigger the "Execution aborted due to [gisle@ask gisle]$ perl5.8.3 -e 'use strict; print if foo' [gisle@ask gisle]$ perl5.8.3 -we 'use strict; print if foo' [gisle@ask gisle]$ perl5.8.3 -e 'use strict; print unless foo' [gisle@ask gisle]$ perl5.8.3 -we 'use strict; print unless foo' |
From @iabynOn Mon, Jan 19, 2004 at 11:50:46PM -0800, Gisle Aas wrote:
Fixed by the change below. One code branch was incorrectly protected by Anyone know of a good place to add tests for this? A grep of Finally, even with the patch, you still get the duplicate error: $ ./perl -Ilib -we 'use strict; print unless foo' This is due to the fact that C<X unless Y> is parsed as C<Y && X>; Dave -- Change 22194 by davem@davem-percy on 2004/01/22 00:24:51 [perl #25147] C<use strict; print if foo> didn't give the Affected files ... ... //depot/perl/op.c#598 edit Differences ... ==== //depot/perl/op.c#598 (text) ==== @@ -3343,12 +3343,10 @@ |
From @rgsDave Mitchell wrote:
Maybe t/lib/strict/subs ? |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#25147 (status was 'resolved')
Searchable as RT25147$
The text was updated successfully, but these errors were encountered: