>>?[EMAIL PROTECTED] wrote
>>>why does A work and B does not?
Robin:
>
>I'm not sure if I understand things. You see, I can do that, but
>nothing will happen -- other than a server error. I don't run this
>code on my Mac -- I only write it on my Mac and run it on the server
>-- am I making sense?
'plogies I forgot you're doing GGI on Linux, in which case-
add
#!/usr/local/bin/perl -w
use strict;
use diagnostics-verbose;
use CGI::Carp qw(fatalsToBrowser);
to the top of your script,most internal perl generated errors will be
sent to your browser but in the event you just get a generic '500 internal
server error' change to your shell account and type
[shell prompt]$ tail /path/to/server/error_logs
which will print out the last X lines of the error log, letting you see
what caused the error. The alternative is to take the troubled section and
run it in MacPerl, which is what I prefer doing when I'm testing something
which isn't system dependant.
Either way you should get into the habit of putting these headers, they
will tell you what's going wrong immediately.
see also:
In the PODs PerlFAQ 9- Networking
on CPAN:
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlfaq9-full.html
the same FAQ but it has more current URLs for more info on CGI topics
HTH
Robin