<div class="gmail_quote"><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>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>