1. I'm VERY new.
2. I have the Perl Cookbook & Learning Perl.
3. I can't figure this out, and searches on the web have only shown me 
MORE complicated methods w/multiple redirect options.

WHERE I AM AT:

apache shows errors below:

[Sun Dec 30 20:42:40 2001] [error] (8)Exec format error: exec of 
/var/www/cgi-bin/quantdirect.pl failed
[Sun Dec 30 20:42:40 2001] [error] [client 66.188.78.192] Premature end of 
script headers: /var/www/cgi-bin/quantdirect.pl

script is HERE:

#/usr/local/bin/perl -w
use CGI qw(:cgi);
use strict;

$myurl = "http://www.quantifier.org/phpquant/";;

print "Location: $myurl\n\n";
exit;

*********
I am fried right now. I have tried this with $url & use strict but 
received this:

Global symbol "$myurl" requires explicit package name at quantdirect.pl 
line 5.
Global symbol "$myurl" requires explicit package name at quantdirect.pl 
line 7.

What documentation tells me HOW to redirect? This file exists with same 
perms/ownership as other scripts. Looking at those for help have been 
fruitless.

The aim is to put a script in my /var/www/cgi-bin/openwebmail/ dir that 
gets called by this code snippet:

**begin snip**

 my $temphtml = startform(-action=>"$config{'ow_cgiurl'}/quantdirect.pl") 
..
#   my $temphtml = 
startform(-action=>"$config{'ow_cgiurl'}/openwebmail.pl") .
                  submit("$lang_text{'continue'}").
                  "   ".
                  button(-name=>"exit",
                         -value=>$lang_text{'exit'},
                         -onclick=>'window.close();',
                         -override=>'1').
                  end_form();

**end snip**

I've also looked at the openwebmail list and had no luck.

I asked a similar question to beginners-cgi but received no answer. 

ANYone out there to point me in the correct direction??? even if another 
list...

Thanks (be gentle...)

KeN
_____________________________________
http://quantifier.org GnuPG: 7C828670
  8:30pm  up 10 days,  4:15
Your love life will be... interesting.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to