in reply to Configuration of Sambar server to use Perl

The problem with including -w could be that sambar isn't aware that this is a flag, and it thinks that this is part of the executable name.

Try doing 'use warnings;' instead.

As for commenting out use CGI;, perhaps your include path is lacking? Try this to see what you have currently:

#!C:\perl\bin\perl.exe print "Content-type: text/plain\n\n"; print "Include path:\n"; print "$_\n" for @INC;