[Melbourne-pm] Postfix conditionals and creating lexicals

Mathew Robertson mathew.blair.robertson at gmail.com
Thu Jul 12 20:40:25 PDT 2012

> looks like targetting the specific idiom:
>   my $foo ... if 0
> should warn about any
>   my $foo ... if ...
> > So while we can argue about whether or not its a bug
> unintended dis-recommended 'features' are bugs, categorically
> > If I get around to it I'll open a bug report, even if its just asking
> > for better warnings. I doubt I'll have time to work up a patch myself.
> If can detect the pattern with 'use warnings', I guess not too hard
> to make it a syntax error in the core.  Maybe don't want to break
> existing abuse of it, so leave it in use warnings / use strict.
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

my .... if ...
local .... if ...
our ... if ...

and dont forget 'unless'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20120713/ffbd9eca/attachment.html>

More information about the Melbourne-pm mailing list