I want to compliment Steve Oualline for writing a good article that has some perl hacks to help debug CGI programs that you write.  I personally am not a big CGI / Perl programmer but have worked with some in the past and I know how powerful Perl can be to take a lot of data and parse it into dynamically created pages.  The only drawback that I have ever had personally w/ Perl / CGI programming is that it doesn’t have a built-in debugger for debugging apps like other languages do.  This article offers up some alternatives for debugging. 

Link to Wicked Cool Perl Scripts - webreference.com