develooper Front page | perl.perl5.porters | Postings from May 2004

Re: variable names in uninit warnings for maint?

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 25, 2004 01:41
Subject:
Re: variable names in uninit warnings for maint?
Message ID:
1085474507.40b306cb51169@imp5-q.free.fr
Quoting Dave Mitchell <davem@iabyn.com>:

> On Mon, May 24, 2004 at 05:19:41PM +0100, Nicholas Clark wrote:
> > 3: we need another way of specifying that we'd like uninit warnings to be
> >    reported in the new format.
> 
> This also needs to be somethiong that makes it clear that it's a temporary
> expedient for 5.8.x only and that it's on in 5.10.x automatically;
> 
> ie if we introduce the general public to (say)
> 
>     use warnings 'undef_var_names';
> 
> then in 5.10.0 they'll have to do this instead to maintain the status quo:
> 
>     no warnings 'undef_var_names';

I'd rather have an option globally settable, non-intrusive,
forward-compatible; with a clear note, "this will be the default
in 5.10 and onwards". I think yet another environment variable
can do. PERL_5_10_ISH for example. Detailed warnings will be
wanted by developers, so they could set this variable while they
are debugging, and leave it off in production. The main
advantage of this approach is that it will not be necessary
to modify the code to get the detailed warnings.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About