Igor Ivoilov wrote:
Sorry for not pointing out all details

config file
<FilesMatch "\.pl$">
        SetHandler perl-script
        PerlHandler ModPerl::Registry::handler
        PerlOptions +ParseHeaders
        AddType text/html .pl
        Options +ExecCGI
</FilesMatch>

my $r = Apache->request;
gives "Can't locate object method "request" via package "Apache" at ...."

That's much better. You need to load 'Apache::RequestUtil'


Please refer to the compatibility and porting documents which give you all the info that you need:
http://perl.apache.org/docs/2.0/user/porting/compat.html
http://perl.apache.org/docs/2.0/user/porting/porting.html


while
my $r = shift; gives an object of type 'Apache::RequestRec'

That's correct.


Can not find how to reach header_in() from this point

Again, it's in: http://perl.apache.org/docs/2.0/user/porting/compat.html

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to