Branch: refs/heads/jkeenan/unicode-collate-mkheader-warnings
Home: https://github.com/Perl/perl5
Commit: 5de3e0d77a20b57ce875e24b9143ae43215c7da9
https://github.com/Perl/perl5/commit/5de3e0d77a20b57ce875e24b9143ae43215c7da9
Author: James E Keenan <[email protected]>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M cpan/Unicode-Collate/mkheader
Log Message:
-----------
mkheader: Prevent 'print on closed filehandle' messages
Program 'mkheader' is called from cpan/Unicode-Collate/Makefile.PL,
which was recently revised to run with both strictures and warnings.
Makefile.PL executes mkheader via a 'do'. This was causing the
following statements to be printed during 'make' in the Perl
5 build process:
printf() on closed filehandle $fh_h at
.../cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 1233.
print() on closed filehandle $fh_h at
.../cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 1234.
Storing the original filehandle during select(), then restoring it at
the end of the loop, clears up those statements.