Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I try to use lots of small procedures rather than a few large ones. It enables a bigger picture of the logical flow, and prevents you from getting bogged down in details.
Whenever I see duplicate occurrences of the same code, I try to use a sub instead. (If there's a problem with it, a fix to the one sub fixes all occurrences; you know the code is supposed to be identical.) These prevent logical as opposed to physical problems... Revised:Always test error returns! Always display error returns with associated parameter(s) (as opposed to simple text)! In reply to Re: What habits do you have to avoid introducing bugs?
by apl
|
|