Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl #107726] Filter::Simple: ‘use’ and then ‘no’
Filter::Simple was erroneously signalling eof if it encountered a ‘no MyFilter’ right after ‘use’: use MyFilter; no MyFilter; In this case it should simply not filter anything. The reason for the bug was that the ‘while ($status = filter_read())’ loop in Filter::Simple::gen_filter_import was not incrementing $count (a variable used basically as a boolean to remember whether we are still getting input from the file) when finding the terminator (no MyFilter). So it would conclude after the loop that the file had come to an end and simply return 0. [Commit message written by the committer.]
- Loading branch information