Jim Witte wrote: > > How do I get CGI.pm to work on MacOS X? I set up a script: > -- > #!/bin/sh ^^ This means you are telling the OS that this is a Bourne shell script _not Perl_. You need to start perl programs like this:
#!/usr/bin/perl Or preferably like this: #!/usr/bin/perl use warnings; use strict; > use CGI qw(:standard); > echo Content-type:text/plain > echo > echo This is text Perl uses print instead of echo to display text on the standard ouput and all strings have to be enclosed in quotes. print "Content-type:text/plain\n\n"; print "This is text\n"; # OR print <<EOT; Content-type:text/plain This is text EOT > which works, but if I try to use any of CGI.pm's functions (print > header, for example), it gives me a server error. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]