You know it’s perfectly acceptable to edit code as long as it’s marked as updated. You should correct it to run and mark it as such. It’s nice to see you post some code. I have to say though that if you can’t even write a correct comment in Perl, let alone code that will compile—and can’t be bothered to fix it—it’s really time to back up for some introspection about your participation here and what you hope to achieve going forward.
You’ve always been polite, friendly, and encouraging here and that carries some weight but you’re not really offering anything else and you’re sabotaging yourself and your technical reputation. Take a break? Change gears from seasoned expert to cautious learner? Something has to give.