Thanks

I was considering this but I wasnt sure if they were equivalent. Guillaume, this should not be a problem right?

Kartik Thakore

On 2010-07-02, at 3:02 PM, chromatic <[email protected]> wrote:

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

Reply via email to