in reply to best practice

If you're looking for more style tips, you might try running your code through perltidy. It has a good, readable style that you would do well to emulate.