A pineapple's prickly exterior reveals little about the quality of the fruit, but there's a simple trick to find a ripe one.