Forum Moderators: mack
#!/usr/bin/perl
# test.pl
# Displaying a Perl document
use warnings;
use strict;
use CGI qw( :standard );
my $dtd =
"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
print( header(), start_html( { dtd => $dtd, title => "Test Script" } ),
h1( "This is a Perl document!" ), end_html() );
When I run the program from the IE address line, I receive a File Download dialog box. If I select "Open", the perl program runs in a cmd window which shuts upon completion. When I run the program from a cmd window, I can see that the html rendered is correct.
Any ideas as to why I cannot get the perl program to render in my IE?
You'll now be at the App Mapping tab. Ensure that .pl or .cgi (whatever you're using) is mapped to perl.
If it is not, you'll need to add it according to the instructions that came with your perl (the instructions are different for ActiveState than regular perl/win32).