jozefn has asked for the wisdom of the Perl Monks concerning the following question:

Group, I wrote system that works great on my own box - windows2000/apache/mysql and (what else is there?) Perl. I moving this to the production box which is windows 2000 IIs server - I had to play with my lib statements as some of you helped me with this ---- however.... The setup on the IIs box is that perl is on C drive and my scripts, templates, and html are on the D drive. I have configured web site in IIs to run scripts and executables. I have a rountine that handles all of my template work - taken from the advanced perl book from O'rielly. code: after html header print &Template('myfile.tmpl', \%form); the template subroutine takes the template file drops all of the variables in the %form hash into the proper place and sends the stuff to the browser - at least that's what happens under apache. On IIs - I get what looks like a default html page with not guts:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD> <BODY></BODY></HTML>
I am at a loss - any and all help would be most appreciated.

Replies are listed 'Best First'.
Re: Perl cgi on IIs - path question
by dree (Monsignor) on Jun 11, 2002 at 22:51 UTC
    As I said in this node :

    IIS doesn't like relative paths!
    This would work for you:
    ($relative_path=$ENV{SCRIPT_NAME}) =~ s|[^/]+$||; $absolute_path=$ENV{PATH_TRANSLATED}.$relative_path; $myfile=$absolute_path.'myfile.tmpl'; &Template($myfile,\%form);