in reply to Newbie regex question
at the top of your program would catch your error and point out the location where you need to think about what you're doing.
You'll need to declare $birthdate outside of your block, and not declare it twice, because the inner declaration shadows the outer declaration for its block.
|
|---|