Can't just put Apache/cgi-bin in www, but right modification of httpd.conf.
If default setup, still not work, make sure to include the right path on the top of your file.
Check my simple sample file here on "View tested XML and also test CGI/Perl":
[
testsite.jlbn.com]
Hope this help,