I can currently read, update and add data on mysql tables using mod_perl. However, my problem is that I want to read a table, if a record is matched then update one field within that record. If no record is matched then create a new record. Does anyone know the expression needed to perform above operation?