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

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

Thread Previous | Thread Next
James E Keenan via RT
January 24, 2018 21:18
[perl #132732] use if - behaviour does not match documentation
Message ID:
On Wed, 24 Jan 2018 17:38:14 GMT, 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 (

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About