in reply to Update works for line...deletes other records
Its simple, its because you throw away all the other lines (you don't print them)
Write to existing file with character insert (tags: in place edit EDIT AND BACKUP FILES SAFELY ARGV::readonly Iterator::Diamond Iterator::Files -pi.orig -pi.bak )