in reply to Debugging Perl: Troubleshooting for Programmers
The discussion starting at Random thoughts on programming also has much valuable advice to help you avoid (or failing that to track down) bugs.