Re: Regex find and replace - delete line
- From: perrin@xxxxxxxxxxxx (Chad Perrin)
- Date: Sun, 23 Jul 2006 06:11:03 -0600
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"?
--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Brian K. Reid: "In computer science, we stand on each other's feet."
.
- Follow-Ups:
- Re: Regex find and replace - delete line
- From: D. Bolliger
- 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
- Regex find and replace - delete line
- Prev by Date: Re: parseform.lib
- Next by Date: Re: Regex find and replace - delete line
- Previous by thread: Re: Regex find and replace - delete line
- Next by thread: Re: Regex find and replace - delete line
- Index(es):
Relevant Pages
|