in reply to IIS & perl - are they compatible ?

The first step is to print a header:
use CGI qw/:standard/; print header(); map { print "$_ => $ENV{$_}\n" } keys(%ENV);

If that still doesn't work, log in your server's log files (on apache that's error.log, I don't know how IIS calls the log files).

Replies are listed 'Best First'.
Re^2: IIS & perl - are they compatible ?
by Bloodnok (Vicar) on Jan 31, 2008 at 12:26 UTC
    TFT ,

    I didn't bother with any useage - just in case that was causing the problem.

    I have copied the .pl script to .htm (in the same location) and browsing that gives what would expect i.e. 'map { print "$_ => $ENV{$_}\n" } keys(%ENV);' as plain text.

    On inspection of the somewhat terse log, it would appear that an HTTP 502 (Bad gateway) error is being generated.

    At last, a user level that best describes my experience :-))