Have a look at
PerlIS (more commonly known as 'Perl for ISAPI', which comes as part of the default install with ActivePerl) from
ActiveState. If you're using IIS then change the shebang line to:
#!/usr/bin/perlis.dll
If you then need to switch to Apache, without changing the shebang line, find the following line in the httpd.conf and ensure it's uncommented:
ScriptInterpreterSource registry
This will ensure you run the script against the Perl binary referenced in the registry and will ignore the shebang line. I use this to switch between IIS and Apache all the time.
--
Barbie | Birmingham Perl Mongers | http://birmingham.pm.org/