Pic wisely where you train
I started at 33 and got CPL at a city pump 'em through flying factory.
Lesson 1, Go to a country or suburban school as they have industry contacts who can help you out with your first job. I got CPL 2.5 years ago and still haven't cracked that first job. Not the instructor type so limits it a bit.
Lesson 2, stay away from schools with foreign airlines contracts. You will be number 10 on the priority list.
Lesson 3, dont get talked into doing a rating you dont really need. Aerobatics is great if want to do it but tailwheel and low level is a bit of a waste if you dont have a soild job offer.
Unlike most of the posters on here I have come across some ageism but that seemed to come from places you wouldn't want to work at anyway.
I also wanted to stop numerous times but kept cracking on with it. I know if I persist I will get a break so haven't given up yet. Some young guys who I did CPL with have already given up looking and have wasted bucket loads of mum and dads money.