in reply to How do I delete/modify one line from test file ?
open(FILEHANDLE,"+< $FILENAME) or die print $!; while(<FILEHANDLE>){ if ($_ ne 'b|b|b|b|b|b'){ push(@outtext,$_); } Do what you want from here. Of course it always a good idea to lock the file if you are on a UNIX system.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I delete/modify one line from test file ?
by Anonymous Monk on Apr 04, 2001 at 01:07 UTC | |
by arturo (Vicar) on Apr 04, 2001 at 01:48 UTC |