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

Re: use v5.36; use warnings;

Thread Previous | Thread Next
From:
Joseph Brenner
Date:
May 29, 2021 01:32
Subject:
Re: use v5.36; use warnings;
Message ID:
CAFfgvXUiowjMuWGwN+9xGeWbT8MUD-GKWATz+hV2kes-UUgGMA@mail.gmail.com
> What I would expect to happen is that the statements are applied in order.

That makes sense if you think abouit it, but it would be pretty easy
mistake to make, I would think.  "Why am I still getting warnings
after I explicitly said 'no warnings'?"


On 5/28/21, Darren Duncan <darren@darrenduncan.net> wrote:
> On 2021-05-28 6:16 p.m., Ricardo Signes wrote:
>> On Fri, May 28, 2021, at 7:37 PM, Paul "LeoNerd" Evans wrote:
>>> Also reminder that Leon T has already implemented it:
>>>
>>> https://github.com/Perl/perl5/pull/18666
>>>
>>> Just needs some documentation.
>>
>> I haven't built this yet, and can't tonight, but will soon… but the big
>> question
>> for me is what does it do here:
>>
>> no warnings;
>> use v5.35.1;
>>
>> ?
>
> What I would expect to happen is that the statements are applied in order.
> So a
> "no warnings" above the "use" would have no effect, turning warnings off
> before
> they're turned on again, but having it following the "use" would turn
> warnings
> off after they're turned on. -- Darren Duncan
>
> --
> To unsubscribe from this group and stop receiving emails from it, send an
> email to doom+unsubscribe@kzsu.stanford.edu.
>
>

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