I've been looking at a lot of code lately, and it pains me to see how unstructured and randomly formatted it is.
A nice, clear, consistant layout of the code goes a LONG way to debugging code, or understanding it.
With that in mind, I would suggest a reading of the
Perl Style Guide as it contains the recommended style for Perl code.
Upon reading it, the first question people always ask me is "what's an uncuddled else?"
this is cuddled:
This is the preferred way:
(with the else on its own line)
Everyone has there own style of how they do things. That's fine. If you don't want to go with all of the recommend Perl styles that is ok. BUT, whatever style you choose, please be consistant throughout your code. Don't follow other people's example's and make a mishmash of sloppy looking code.
Code that looks professional gains much higher respect then code that doesn't.
--mark