You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Pierre J. Nicolas" <pn...@rcn.com> on 2000/05/07 22:28:17 UTC
Re: CGI to mod_perl
I have:
PerlHandler Apache::Registry
PerlRequire /path/to/perl/startup.pl
where in the startup.pl file I have:
use lib qw(/path/to/perl/perl-lib);
and I'm still experiencing those:
"Undefinde subroutine &Apache::Root:perl::script_name::function_name
called at /path/to/perl/scriptname line number"
errors.
Could someone recommend a solution for me to still
access my original perl library routines with minimal
rewriting.
Thanks,
Pierre
Matt Sergeant wrote:
> On Fri, 5 May 2000, Doug MacEachern wrote:
>
> > On Thu, 4 May 2000, Matt Sergeant wrote:
> >
> > > How do you get at $r in a directive handler?
> >
> > other way around, you get at directive handler config from a handler,
> > which has been passed $r, e.g.:
> >
> > sub handler {
> > my $r = shift;
> > my $cfg = Apache::ModuleConfig->get($r, __PACKAGE__);
> >
> > $cfg would contain the data stashed by the directive handler.
>
> Ya - got that bit now. See AxKit 0.57 - it has an overloadable class for
> getting the configuration, so you can either get it from
> ModuleConfig() via .htaccess, or provide another method, such as brian
> wants to be able to emulate Cocoon 2's sitemap feature. This allows you to
> do that. Gotta love OO.
>
> For anyone interested, AxKit is proceeding at an incredible rate. We've
> now got an almost complete XSLT implementation curtesy of the Sablotron
> library, and lots of other excellent things going on.
>
> --
> <Matt/>
>
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org http://xml.sergeant.org
Re: CGI to mod_perl
Posted by Stas Bekman <sb...@stason.org>.
On Sun, 7 May 2000, Pierre J. Nicolas wrote:
> I have:
>
> PerlHandler Apache::Registry
> PerlRequire /path/to/perl/startup.pl
> where in the startup.pl file I have:
>
> use lib qw(/path/to/perl/perl-lib);
>
> and I'm still experiencing those:
> "Undefinde subroutine &Apache::Root:perl::script_name::function_name
> called at /path/to/perl/scriptname line number"
> errors.
>
> Could someone recommend a solution for me to still
> access my original perl library routines with minimal
> rewriting.
>
http://perl.apache.org/guide/troubleshooting.html#Undefined_subroutine_Apache_RO
______________________________________________________________________
Stas Bekman | JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ | mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org | http://perl.org http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------