In bisect-runner.pl, refactor the code that opens and closes file handles.
authorNicholas Clark <nick@ccl4.org>
Fri, 28 Oct 2011 08:42:28 +0000 (10:42 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 28 Oct 2011 10:41:13 +0000 (12:41 +0200)
commit69bf9aba2f680b268fd6bd601e8078d35c6e4861
treebb1f64a126d635e2de611bc0aad834c505cc3de5
parent03c5309f206867fc3968282894df5f6bd65feb17
In bisect-runner.pl, refactor the code that opens and closes file handles.

Can't use autodie, as this code needs to be able to run with the system perl
alone, and autodie wasn't added until 5.10.1. Also, the approach taken here
provides the filename in the error message for a failed close.
Porting/bisect-runner.pl