how can i get perfect yoga practice even tho and bad at it

i find it difficult to touch my toes without bending my knees and when i do i feel alot of pain