The syntax s/match_value_to_replace/replace_value/ replaces the value searched for with the replace_value. By adding the letter g to the end, will find all possible matches. Otherwise, only the first match found is changed.
$_ = "here where there theresa";
s/ere/at/g; # $_ = hat, what, that, thatsa