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

[perl #132732] use if - behaviour does not match documentation

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
January 24, 2018 21:18
Subject:
[perl #132732] use if - behaviour does not match documentation
Message ID:
rt-4.0.24-16809-1516828688-1955.132732-15-0@perl.org
On Wed, 24 Jan 2018 17:38:14 GMT, grinnz@gmail.com wrote:
> >
> >
> That should be reasonable, but note that not many modules implement
> unimport; 'no warnings' is probably the most common usage of 'no'.
> 
> -Dan

There are many instances of the 'no' function in the source code, but very few instances of the string 'no if'.  See attachment for output of 'ack '\bno\s+if\b' .'.  Almost every instance is testing one of Perl's special variables against some value and, as you say, most are warnings-related.

Unfortunately that isn't getting us any close to solving the problem.  Is anyone familiar with where/how 'no' is implemented in the source code?

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=132732

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