Re: FrozenBubble updates and Questions
[email protected] (chromatic)
| Newsgroups | perl.sdl.devel |
|---|---|
| Organization | Snafu |
| Message-ID | <[email protected]> |
On Thursday 01 July 2010 at 06:54, Guillaume Cottenceau wrote:
> > if 0 is deprecated and should not be used. But I have reverted back.
>
> Why not. My point is either leave it, or change it properly. But
> changing it by breaking the feature it is currently performing is not
> too good.
These are easy to fix. Hoist the lexicals into a new outer scope by changing:
# deprecated
sub foo
{
my $x if 0;
}
... to:
{
my $x;
sub foo { ... }
}
-- c