in reply to What habits do you have to avoid introducing bugs?

In general I would say that using:
use strict; use warnings;

And perlcritic is a very good starting point.

while ( whoring ){ for ( xp ){ grep /the source/,@perlmonks; }}

Replies are listed 'Best First'.
Re^2: What habits do you have to avoid introducing bugs?
by amarquis (Curate) on Feb 06, 2008 at 14:51 UTC

    I think that in jumping right to perlcritic, you miss a step. I'd first pick up a copy of Perl Best Practices.

    Much of the value of perlcritic/PBP is wrapped up in the introspection: PBP makes you ask "Why do I code this way?" invites you to explore different ways of doing things. Which, in my case, were often better ways of doing things.