When the local course is private, as at the Royal Perakiaolf Club at Ipoh, y'all's hotel may be able to get you temporary membership if you are a member of a golf club back home.
All courses are free and open to the public.