Re: Regex find and replace - delete line



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
.



Relevant Pages

  • Re: Regex find and replace - delete line
    ... If you want to delete entries from @file completely... ... 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: 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: required fields
    ... Current Record error after the first message about missing the required ... I didn't start any entry in a field and then back out so I'm not ... Tips for Access users - http://allenbrowne.com/tips.html ... Cancel = True ...
    (microsoft.public.access.forms)
  • fsck does not fix the drive
    ... I've been doing fsck in one of my volume drives so I ... can mount it, but always gets the same error for several times now. ... missing. ...
    (comp.unix.aix)
  • Debug tasks spawned by taskSpawn
    ... Wind River Workbench 2.4 with vxWorks 6.2. ... When I try to debug this project, how can I debug the function foo() ... I need to see who overwrite the global variables inside fooat the ... If i set the entry point to be mainwith "break on entry" checked, ...
    (comp.os.vxworks)