in reply to Re^2: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
in thread Parsing out mulitiple blocks of interesting data in files / ignoring other contents
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, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parsing out mulitiple blocks of interesting data in files / ignoring other contents
by GeorgMN (Acolyte) on Mar 02, 2016 at 13:52 UTC |