Thanks everyone. I've washed out first with detergent, then with white vinegar solution, then with bicarbonate solution. Left overnight with saucer of bicarbonate on each shelf plus half an orange (I didn't have lemons but will be buying some today). I could actually 'taste' that scent in my coffee after having my head stuck on the cupboard for so long. I'm still aware of a faint perfumed odour and will repeat the overnight saucers again tonight, but with lemons. I hate sprays - I think the rise in asthmatic children has a lot to do with people spraying airfreshners in their homes - but we had some 'neutralising' ones in the cupboard that we used for the dog bed. I hate them even more now! After putting all the glasses through the dishwasher to get rid of the taint I found that OH, up before me, had emptied the dishwasher and had replaced them all in the smelly cupboard.