arootbeer has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks, is there a quick analogue to grep -p using regexp? I'm currently using a
next if ...statement because I have a specific case that I'm looking for, but I'd like a more general and robust way of getting information on lines that are related to a target line by proximity.
Does perl's built-in grep function support such functionality?
Thanks!
-Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: grep -p ?
by Abigail-II (Bishop) on Dec 09, 2003 at 17:12 UTC | |
by arootbeer (Novice) on Dec 09, 2003 at 17:18 UTC | |
by Abigail-II (Bishop) on Dec 09, 2003 at 17:27 UTC | |
by arootbeer (Novice) on Dec 09, 2003 at 17:36 UTC | |
by duff (Parson) on Dec 09, 2003 at 17:28 UTC | |
|
Re: grep -p ?
by Anonymous Monk on Dec 09, 2003 at 17:24 UTC |