-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 D. Bolliger wrote: > 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" . . . Thanks to all! The above solution worked perfectly.
Regards James Turnbull - -- James Turnbull <[EMAIL PROTECTED]> - --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) - --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFExzXm9hTGvAxC30ARA+S9AJ905Cz3CpMnAqiCq453m/tljyN4SQCfUFOY BKE5/gyMy268joBcdpzpRJM= =DaPD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>