This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In checkcfgvar.pl, inline and eliminate read_file() and config_h_SH_reader().
authorNicholas Clark <nick@ccl4.org>
Tue, 9 Aug 2011 09:30:35 +0000 (11:30 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 9 Aug 2011 09:30:35 +0000 (11:30 +0200)
commit4ccedf19068db1b38e89a50a04ef6c446c6716df
tree65f2705804aaf1c75bfb6be4f7e6b037e8a91e01
parent1750d3ff2eed6c4b057e139a98d99b148b9fc4c6
In checkcfgvar.pl, inline and eliminate read_file() and config_h_SH_reader().

config_h_SH_reader() was called once in one place, to generate a closure
passed to read_file(). In turn, read_file()'s use of a callback to process
lines of the file that it opened concealed the near-linear flow of control.

use autodie; to simplify the error handling.
Porting/checkcfgvar.pl