On Tue, 10 Dec 2002 12:35:56 +0100, "Mystik Gotan" <[EMAIL PROTECTED]> wrote:
> #!/path/to/perl -wT
> use strict;
> use warnings;
>
> That might help.
>
Any reason to use -w and use warnings?
http://danconia.org
--
To unsubscribe, e-mail: [EM
#!/path/to/perl -wT
use strict;
use warnings;
That might help.
--
Bob Erinkveld (Webmaster Insane Hosts)
www.insane-hosts.net
MSN: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: Dave K <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: script runs in console but
Thanks guys, that was only part of the script.
I am using CGI::Carp qw( fatalsToBrowser );
There are no errors in any of the apache logs, nor from Perl.
This is why I'm struggling to find the source of the problem.
I'm also doing this
print "Content-type: text/html\n\n";
but like so
print $q->h
Merritt,
Works as expected in the console, but not in the browser?
Let me introduce you to a friend of mine
use CGI::Carp qw( fatalsToBrowser );
Your script operates under different permissions in the console and the
browser. Look at the Apache error log (and use cgi carp) to get a better
Idea
In the beginning of your script, put:
print "Content-type: text/html\n\n";
This is because the browser need to know what content type is being printed,
and in the shell all is the same, so you don't need it. Anyway, any web page
you request is declared with a content type, but this is automatic