You’ve omitted this part of the code:
elsif (/^\s*shutdown/) { @block = (); $in_block = 0; }
which tests for the “ignore entire block” keyword shutdown — so of course blocks containing that word are still being printed.
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re^3: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
by Athanasius
in thread Parsing out mulitiple blocks of interesting data in files / ignoring other contents
by GeorgMN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |