No it isn't.
)/g; is not valid Perl so you'd get an error message about that in that case.
perl is very smart about inferring the correct delimiter in the overwhelming majority of cases anyway; please check your assumptions next time.
Makeshifts last the longest.