This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
'if' module: clarify documentation and test more thoroughly.
authorJames E Keenan <jkeenan@cpan.org>
Tue, 23 Jan 2018 15:46:32 +0000 (10:46 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Thu, 1 Feb 2018 12:37:57 +0000 (07:37 -0500)
commit1654584e05038fee2cc4307f292f18e445d0e50f
tree0c3b7c66a4971ae42971df8660ff3fdb16bbd5dc
parent8d629a78e79c19651f98fd50647911d78b7de698
'if' module: clarify documentation and test more thoroughly.

The documentation for 'if' made certain claims about the need to quote or not
quote a module name preceding a "fat arrow" ('=>') operator.  These claims
were shown to be unfounded in most cases when "use strict 'subs'" was in
effect.

In the course of writing better documentation, it was observed that the "no
if" case was very under-tested, poorly documented and hence poorly understood.
Hence, more tests have been added and the documentation has been extensively
revised.  However, there have been no changes in source code or functionality.

Make porting/podcheck.t happy.  Compensate for functions not available on
older perls.  Documentation touch-ups suggested by sisyphus.

For:  RT # 132732.
dist/if/if.pm
dist/if/t/if.t