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

Re: 'use warnings' with exceptions

Thread Previous | Thread Next
From:
Karen Etheridge
Date:
January 29, 2020 16:57
Subject:
Re: 'use warnings' with exceptions
Message ID:
CAPJsHfBNcym7e8de80f+J=pFTgS9i552zpsAfgpv0XyB=c_wXw@mail.gmail.com
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';".

use warnings qw(-foo -bar);  should be equivalent to use warnings; no
warnings 'foo', 'bar';.

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