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

Re: use v5.36; use warnings;

Thread Previous | Thread Next
From:
Darren Duncan
Date:
May 29, 2021 01:29
Subject:
Re: use v5.36; use warnings;
Message ID:
822e0a16-58a0-9ce3-5c3c-1d7e554a4d45@darrenduncan.net
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

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