in reply to Deleting a row in a file

Open the file in read mode ,keep it in @arr. Close the file handler. Open it again in write mode. Iterate @arr and apply logic Write it to file Close the file handler