in reply to printing to a local printer from IIS 7.5 and server 2008 r2
The test script that I am using is
That script does not attempt to return a set of HTTP headers
You have Server error, see CGI Help Guide , Troubleshooting Perl CGI scripts
You need to return a set of headers , maybe print "Content-Type: text/html\n\n";
more checklists brian's Guide to Solving Any Perl Problem, on learning CGI learn about the internet,Web Programming: For Beginners, to get an overall picture of how the internet works, how tcp/ip, sockets, html, ajax, all fit together.