Your while loop looks at one line at a time but your text says "synopsis (multi line)" ... D'oh!
So what is the problem? The tags he is matching do not contain a newline. The flip-flop maintains a state to govern the filter logic; there is no compelling reason to slurp the file.
In reply to Re^2: No tools? Use Perl?!
by Anonymous Monk
in thread No tools? Use Perl?!
by Boyd.Ako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |