Is there a way to convert xxx@dom.ain.com to domaincom, so to remove everything before and including @ and then to remove the dot from the rest of the line?
Because the first substitution can only occur once, doing it with /g is harmless:
s/(.*?@|\.)//g
In the general case, mixing non-/g and /g substitutions isn't really possible, and extracting tokens between separators isn't really doable if you want to do some other substitution at the same time.