Rim the glass with lime juice and the rosemary salt.
Shake all the ingredients, except fresh pear and the salt with ice in a cocktail shaker until the outside of the shaker is cold.
Strain into a glass over rocks, or “up”.
Garnish with a slice of pear or fresh rosemary if desired.