To make the syrup, simmer together the sugar, water, and rosemary for 10 minutes until sugar dissolves. Cover pot with a lid and steep for at least one hour.
To make cocktail: in a shaker, shake rosemary syrup and lime juice. Pour over crushed ice and top off with Perfect. Decorate with rosemary spring, fresh blueberries, and/or lime slices.