PDA

View Full Version : Trying to test perl on IIS (for xp pro) .. need help


cortic
06-07-2003, 10:50 PM
Ok, I've installed the Internet Information Services for XP pro (off the installation disc) and ActivePerl 5.6 ... simple test:

#!/usr/bin/perl -w
print"Content-Type: text/html\n\n Hi world";

works fine... but when I try to use perl to edit any other file it doesn't (no error just runs finishes and doesn't write) ... another simple test:

#!/usr/bin/perl -w
print"Content-Type: text/html\n\n";
open (LST, ">>sites.txt");
print LST "see me\n";
close (LST);
print”we got through”;

it runs ok, but 'see me\n' is not inserted into the sites.txt file ... I've tried changing permissions (through the admin IIS manager & locally with right-click and file sharing menu) I've tried playing with the path to perl, even changing file extensions on sites file... I'm at a complete loss, I used to have perl 5 on ME and that was easier than this… any help would be very welcome.