On Fri, 4 Feb 2022 at 08:21, Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote: > On Fri, 4 Feb 2022 07:36:21 +0800 > Tom Molesworth via perl5-porters <perl5-porters@perl.org> wrote: > > > The concept seems reasonable, just not too clear on exactly what's > > being suggested - would this affect these two cases, for example? > > > > { # Only using some of the features, e.g. variables should be > > declared, but keep barewords and symbolic references enabled > > use strict 'vars'; > > our $x = example; # should be fine > > $y = 'compile-time error'; # should fail > > } > > > > and > > > > use strict; > > { # limited-scope disabling of a feature > > no strict 'refs'; > > our $typo; > > my $name = 'whatever'; > > *$name = sub { # this part is fine > > ++$tpyo # would want a compile-time error here > > }; > > } > > Those two examples would be exactly as they are, entirely unaffected. > +1, thanks for the explanation.Thread Previous