Greetings Perl Listers, I'm trying to write a program in which I will be updating an employee database( a flat file here)., with Employee Id as the key.
For the sake of simplicity , assuming that the fields are like <EmpId> <Salary> <EmpIe2> <Salary2> ...... ..... Can somebody help me finding out how does the code look like , if I've to do something like.. if( record with EmpId exists ) { update with the new input } else { insert the new record at the end of the input } Thanks for your help Bhanu. __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]