The 18th chapter: Testing and debugging second-Qi.
Write a test case first. Ii. Ba.
standardize your test cases with test::simple or test::more. Nine.
standardize your test set with test::harness. Ii. 0.
Write a failed test case. three.
both possible and impossible have to be tested. three.
Add a new test case before starting the test. three three.
be sure to use using strict. three.
Be sure to turn on the warning feature explicitly. three.
never assume that no warnings are correct during compilation. three continents.
explicitly and selectively turn off censure (stricture) or warning (warning),
and is within the smallest possible scope. the third seven.
learn at least the subset functionality of the Perl debugger. three ba.
the warning to use serialization when "Manual" debugging. three, nine.
Consider using "smart annotations" instead of warn statements when debugging.
Perl Best Practices (excerpt)---18