Tamar later gave birth to twins. But before either of them was born, one of them stuck a hand out of her womb. The woman who was helping tied a red thread around the baby's hand and explained, "This one came out first."
Right away his hand went back in, and the other child was born first. The woman then said, "What an opening you've made for yourself!" So they named the baby Perez.