Re: Handling the User pressed Stop button case - problems

[prev] [thread] [next] [Date index for 2004/11/29]

From: Stas Bekman
Subject: Re: Handling the User pressed Stop button case - problems
Date: 15:33 on 29 Nov 2004
Federico M. wrote:
> Sorry, this is my source.
> 
> 
> #!/usr/bin/perl
> my $r=shift;
> $r->send_http_header('text/plain');
[...]
> ERROR: Can't call method "send_http_header" on an
> undefined value at scan2.cgi line 3.

bizarre, are you sure you don't have some other config and it tries to run 
it under mod_cgi instead? replace this with a simple test:

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "Running under mod_" . ($ENV{MOD_PERL} ? "perl" : "cgi");


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Handling the User pressed Stop button case - problems
Stas Bekman 15:33 on 29 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52