in reply to Re: push to an array lines matching a pattern, and the lines before and after the matching
in thread push to an array lines matching a pattern, and the lines before and after the matching
But it's hard to believe that there isn't already an full featured unix-grep emulation in pure perl, and we are reinventing the wheel.
Have to admit, I'm too lazy to search CPAN now ...
Cheers Rolf
UPDATE: ¹) and a regex even more.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: push to an array lines matching a pattern, and the lines before and after the matching
by JavaFan (Canon) on Mar 03, 2012 at 00:41 UTC | |
by LanX (Saint) on Mar 03, 2012 at 03:25 UTC | |
by gianni (Novice) on Mar 04, 2012 at 10:08 UTC |