Tom Christiansen wrote: > > >It happens when I don't bother to declare something. My company has > >several dozen machines with an 'our'-less perl, and 'use vars qw($x)' is > >a pain. As is $My::Package::Name::x. > > Far, far easier to fix behavioral problems than to hack Perl. > > --tom Not sure what you mean, since this RFC _adds_ a warning in this case. In fact, with the proposed change, my trick to avoid punishment for my misbehavior would no longer work. The point is that if $x = 3; elicits a warning, then the problem that the warning is pertaining to is not fixed by $x = 3; $x = 3; so the warning should not go away either. In general: when possible, the compiler should not change its behavior when your code does not change in a way relevant to the problem it's complaining about.
- RFC 12 (v3) variable usage warnings Perl6 RFC Librarian
- Re: RFC 12 (v3) variable usage warnings Michael Fowler
- Re: RFC 12 (v3) variable usage warnings Steve Fink
- Re: RFC 12 (v3) variable usage warnings Michael Fowler
- Re: RFC 12 (v3) variable usage warnin... Tom Christiansen
- Re: RFC 12 (v3) variable usage w... Michael Fowler
- Re: RFC 12 (v3) variable usage w... Steve Fink
- Re: RFC 12 (v3) variable usa... Tom Christiansen
- Re: RFC 12 (v3) variable... Steve Fink
- Re: RFC 12 (v3) variable... Tom Christiansen
- Re: RFC 12 (v3) variable... Steve Fink
- Re: RFC 12 (v3) variable usage warnin... Steve Fink
- Re: RFC 12 (v3) variable usage w... Michael Fowler
- Re: RFC 12 (v3) variable usa... Steve Fink
- Re: RFC 12 (v3) variable... Michael Fowler
- Re: RFC 12 (v3) variable... Steve Fink
- Re: RFC 12 (v3) variable... Michael Fowler
- Re: RFC 12 (v3) variable usage warnings Eric Roode
- Re: RFC 12 (v3) variable usage warnings Steve Fink