in reply to push to an array lines matching a pattern, and the lines before and after the matching
Unix grep doesn't do any of that.
I would not be ashamed to call out to an external program. No need to reinvent the wheel, even if the wheel isn't found on CPAN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: push to an array lines matching a pattern, and the lines before and after the matching
by gianni (Novice) on Mar 04, 2012 at 17:23 UTC |