its consumption of alcohol that is haram.. using alcohol in other situations sometimes is good.. alcohol is used in petroleum, and certain medicines wont work without alcohol to dilute them to their certain properties... There is good in every single thing on this earth.. Also harm in it.. NO we arent to drink alcohol as a normal drink...
perfume is one of those items on earth where its properties in some forms require alcohol.. .. it also evaporates once you apply it to your body, so there is no more alcohol about 5 seconds after its on your skin.. Just the aroma remains of the flavors in the perfume... .. and im probably sure the alcohol of the cough syrup evaporated as well...
there are many things that Islam tells us not to consume, but yet we can and perfectly do use them in other purposes..
I wouldnt eat a horse, but yet we can use horse hair in making violin strings..
we dont eat alligator, but we can use their skins in purses, shoes, belts..
Im sure there even might be a use for something on the pig, we just havent figured it out yet... as long as we dont consume it... After all. Allah made the pig.. every single creature on this earth has its purpose... As does every single item, conconction. etc..