my @values = map { s/dc=domain,dc=tld/dc=sub,dc=otherdomain,dc=tld/ir } @$array_ref;