in reply to Re: Deleting a record from a flat text file
in thread Deleting a record from a flat text file
#!/usr/bin/perl # e_id="10.20"; # # open (DATABASE, "mybase.txt"); while (<DATABASE>) { $row = $_; chop $row; ($id2, $status, $fromemail, $efrom,) = split(/\|/, $row); if ($form{'e_id'} ne $id2) {$new_row .= "$row\n";} } close (DATABASE); #writing the '$new_row' to the textfield:<p> open (DATABASE, ">mybase.txt"); print DATABASE "$new_row"; close (DATABASE);
edited: Sat Jun 14 14:05:07 2003 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Deleting a record from a flat text file
by vek (Prior) on Jun 13, 2003 at 18:52 UTC | |
|
Re: Re: Re: Deleting a record from a flat text file
by Muoyo (Novice) on Jun 13, 2003 at 19:14 UTC |