stop $foo =~ /(bar)/g skipping copy