Moves from sed to perl for case-insensitive search-replace.