The other day I was going trough some code I wrote a couple of yoear ago when I had only a bare grasp of the basics of Perl. Ughh - it was horrible.
Anyway one of the main things I noticed was a lack of consistency in deciding when to use a sub and when to cut and paste code. I am interested to know
what 'rules/guidelines' other monks use. While you want to use subs for reusability of code sometimes it can be hard to read code that calls half a dozen short
subs. There must have been much thought on this subject but, in a cursory search, I have not been able to find any good articles on it. Any thoughts or links would be appreciated.