Alan Burlison wrote:
> 
> Steve Simmons wrote:
> 
> > I'd prefer that we break these vars out into a set of hashes with
> > appropriate names:
> >
> >   $PERL_CORE{warnings}          vs      $^W
> >   $PERL_CORE{version}           vs      $^V
> >   $PERL_FORMATS{name}           vs      $^
> >   $PERL_FORMATS{lines_left}     vs      $-
> 
> Hmm - I quite like this.  I'd like it even more if they were package
> scoped and/or localisable.  My choice of warning level in my package
> shouldn't affect your choice in your package.

Now *that's* an advantage I like! Being able to turn on certain warnings
just for certain packages (rather than just a global all-or-nothing $^W)
would be really cool.

As for nitty-gritty, I like the $PERL::CORE::Warnings or
$perl::core::warnings syntax others have mentioned a little better.

-Nate

Reply via email to