[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

RE: lexical warnings upgrade



From: Tom Christiansen [mailto:tchrist@chthon.perl.com]
 
> Shouldn't the libraries that use $^W be upgraded to use lexical
> warnings?  That would put "put our money where our mouth is",
> so to speak.  

Yes, I think it should be done for the modules that don't have a parallel
existence on CPAN. Given the tentative nature of the lexical warnings
categories could I suggest that only 

    use warnings 'all' ;
and
    no warnings 'all' ;

be used.

I see you have been underwhelmed with responses to this Tom, so I'll see if
I can steal a tuit to do it this weekend. I imagine they are all just doing
variations on a theme of this

    {
        local ($^W) = 0 ;
        # do something unsafe
     }


Paul


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]