I've tried both, but my bottles of perfume didn't break even I put them in the suitcase because I wrapped them with my clothes. So, you may also tried it, too.
Please note that it's not suggested to use your perfume during the flight journey, becase the air pressure is different in the air, so the liquid may be squeezed out automatically.