Re: Regex find and replace - delete line



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."
.



Relevant Pages

  • Re: Getting the list of Autocorrect enties in word
    ... the auto-correct entries of Office Word 2003 into a text file with a C# ... application.Quit(ref missing, ref missing, ref missing); ... entry = application.AutoCorrect.Entries.get_Item(ref ... other Windows Installer aware setup editor. ...
    (microsoft.public.dotnet.general)
  • Re: "Entry Type" field missing values
    ... presented with a list of the journal entries I have made. ... details correct except for the missing values in "Entry Type" and Start ... another interesting thing: I can hit Ctrl-Shift-F. ...
    (microsoft.public.office.developer.outlook.forms)
  • Re: Applications missing from Add or Remove Programs ...
    ... each one represents a entry for Add/Remove. ... If no entries are present or only a small number, ... >missing in the list. ... This also includes every Windows Update/Hotfix entry ...
    (microsoft.public.windowsxp.general)
  • Re: Regex find and replace - delete line
    ... Juli 2006 14:11: ... that _equal_ to 'foo' (and the entry does not contain a line ending): ... If I'm missing something, I blame the fact that it's only six in the ...
    (perl.beginners)
  • Re: Numeric sorting of addresses
    ... "Don Guillett" wrote ... So I have the first entry as 1 Foo St and the second entry is 1007 Foo St ... and many more entries before coming to 2 Foo St. ...
    (microsoft.public.excel.misc)