Re: Regex find and replace - delete line
- From: info@xxxxxxxxxxxx (D. Bolliger)
- Date: Sun, 23 Jul 2006 14:46:19 +0200
Chad Perrin am Sonntag, 23. Juli 2006 14:11:
On Sun, Jul 23, 2006 at 01:53:35PM +0200, D. Bolliger wrote:
If you want to delete entries from @file completely...
a) that _equal_ to 'foo' (and the entry does not contain a line ending):
@file=grep { $_ eq 'foo' } @file;
If I'm missing something, I blame the fact that it's only six in the
morning, but . . .
. . . shouldn't that be "ne" instead of "eq"?
Yes, of course it should be "ne" . . .
.. . . we have 34 degrees here
Dani
.
- Follow-Ups:
- Re: Regex find and replace - delete line
- From: James Turnbull
- Re: Regex find and replace - delete line
- From: Randal L. Schwartz
- Re: Regex find and replace - delete line
- References:
- Regex find and replace - delete line
- From: James Turnbull
- Re: Regex find and replace - delete line
- From: D. Bolliger
- Re: Regex find and replace - delete line
- From: Chad Perrin
- Regex find and replace - delete line
- Prev by Date: Re: Regex find and replace - delete line
- Next by Date: Pattern Matching
- Previous by thread: Re: Regex find and replace - delete line
- Next by thread: Re: Regex find and replace - delete line
- Index(es):
Relevant Pages
|