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
strict 'subs' doesn't work about non-existent name used as array index #7173
Comments
From @jlokierCreated by @jlokierThis: perl -e 'use strict; my @x; $x[FOO] = 1' gives the following useful error: Bareword "FOO" not allowed while "strict subs" in use at -e line 1. So why doesn't this: perl -e 'use strict; our @x; $x[FOO] = 1' give an error message? Is this behaviour intentional? Thanks, Perl Info
|
From @iabynOn Sun, Mar 14, 2004 at 06:15:10AM -0000, Jamie Lokier wrote:
No, it's a bug! Thanks for the report. It seems to have been introduced Fixed in the development version of perl by the change below. Dave. -- Change 22499 by davem@davem-percy on 2004/03/14 17:01:34 [perl #27628] strict 'subs' didn't warn on bareword array index Affected files ... ... //depot/perl/op.c#617 edit Differences ... ==== //depot/perl/op.c#617 (text) ==== @@ -6405,7 +6405,7 @@ ==== //depot/perl/t/lib/strict/subs#11 (text) ==== @@ -380,3 +380,16 @@ |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#27628 (status was 'resolved')
Searchable as RT27628$
The text was updated successfully, but these errors were encountered: