in reply to Efficient programming

The path to mastery is an ancient node of mine that may shed some light on this. I would also recommend picking up Code Complete 2 and actually reading the whole thing. (Rather than, say, using it as a doorstop.) It is not bout Perl, but its advice pertains to programming Perl as well as any other language.