mikael-g has asked for the wisdom of the Perl Monks concerning the following question:
I have at flat dtabase file as shown above , each time , i try to delete one record from the file i am erasing the whole file , or getting errors10.00|val_time|email01@tech.com|email01 10.20|val_time|email02@cmv.com|email02 10.40|val_time|email03@air.com|email03 11.00|val_time|email04@drama.com|email04 11.20|val_time|email05@living.com|email05 11.40|val_time|email06@testrr.com|email06 12.00|val_time|email07@ball.com|email07 12.20|val_time|email08@lok.com|email08 12.40|val_time|email09@lome.com|email09 13.00|val_time|email10@faarik.com|email10
Is there someone who want to show me a simple method with file locking to remove the record which starts with --10.20 ..or any other bu using the first entry ??
the fields in the above file is (if you need it)$id2|$status|$fromemail|$eform
thank you !
edited: Fri Jun 13 15:17:58 2003 by jeffa - bogotified email addresses, removed unecessary br tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting a record from a flat text file
by jdporter (Paladin) on Jun 13, 2003 at 15:07 UTC | |
|
Re: Deleting a record from a flat text file
by Ovid (Cardinal) on Jun 13, 2003 at 14:40 UTC | |
by mikael-g (Initiate) on Jun 13, 2003 at 15:12 UTC | |
by vek (Prior) on Jun 13, 2003 at 18:52 UTC | |
by Muoyo (Novice) on Jun 13, 2003 at 19:14 UTC |