Rather than losing a whole raft of language constructs, I'd prefer to be able to tell Perl to behave sanely.<div><br></div><div>Maybe the behaviour could be controlled and modified as a <a href="http://perldoc.perl.org/feature.html">feature</a>?</div>
<div><br></div><div>      use feature 'no_implied_static'; # just for example</div><div>      my $foo if 0;                              #  now behaves sanely without warnings.</div><div><br></div><div>- David<br>
<br><div class="gmail_quote">On Fri, Jul 13, 2012 at 1:40 PM, Mathew Robertson <span dir="ltr"><<a href="mailto:mathew.blair.robertson@gmail.com" target="_blank">mathew.blair.robertson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
</div>looks like targetting the specific idiom:<br>
  my $foo ... if 0<br>
<br>
should warn about any<br>
  my $foo ... if ...<br>
<div><br>
> So while we can argue about whether or not its a bug<br>
<br>
</div>unintended dis-recommended 'features' are bugs, categorically<br>
<div><br>
> If I get around to it I'll open a bug report, even if its just asking<br>
> for better warnings. I doubt I'll have time to work up a patch myself.<br>
<br>
</div>If can detect the pattern with 'use warnings', I guess not too hard<br>
to make it a syntax error in the core.  Maybe don't want to break<br>
existing abuse of it, so leave it in use warnings / use strict.<br><br></blockquote><div> </div></div><div>Given that recent releases are specifically deprecating some functionality, I dont see why this shouldn't be upgraded from warning, to error. ie: any syntax of</div>



<div><br></div><div>my .... if ...</div><div>local .... if ...</div><div>our ... if ...</div><div><br></div><div>and dont forget 'unless'.</div><div><br></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br></blockquote></div><br></div>