develooper Front page | perl.perl5.porters | Postings from January 2020

Re: 'use warnings' with exceptions

Thread Previous | Thread Next
From:
David Cantrell
Date:
January 30, 2020 15:13
Subject:
Re: 'use warnings' with exceptions
Message ID:
20200130151310.GA27892@bytemark.barnyard.co.uk
On Wed, Jan 29, 2020 at 08:56:45AM -0800, Karen Etheridge wrote:
> On Mon, Jan 27, 2020 at 9:26 AM David Cantrell <david@cantrell.org.uk> wrote:
> > So, this:
> >
> >   use warnings qw(-foo -bar);
> >
> > would be equivalent to:
> >
> >   use warnings qw(all);
> >   no warnings qw(foo bar);
> 
> I don't see "all" in the original case you are working from -- "use
> warnings;" is different from "use warnings 'all';".

They're exactly the same, at least, they are in blead:

https://github.com/Perl/perl5/blob/blead/lib/warnings.pm#L336-L348

-- 
David Cantrell

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