Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grep: bad filehandle passed to close() (#746)
* When temporarily enabling warnings+diagnostics in grep I observed a warning related to FILE being used only once * The close(FILE) statement was incorrect because the current input file is actually $fh * The correct place to close the file was after the LINE-loop * Technically $fh was being closed implicitly after each FILE-loop, but keep the pattern of explicitly closing it * Style: where possible, refer to the LINE-loop when jumping from within the LINE-loop * Also convert PATFILE into a regular "my" variable, so there are no more bareword files
- Loading branch information