Hi, 

  I've just read the 79 pages long http://perl.apache.org/docs/1.0/guide/porting.html 
but I still cannot see the light... and franckly it kind off confused me.

I'm trying to migrate from perl to mod_perl. I've tried Apache::PerlRun it works, but 
it's not enough. I'm aiming for Apache::Registry.

Let me explain :

ScriptA
  require 'config.lib';
  %x=&read_query_string;

ScriptB
  require 'confib.lib';
  %x=&read_query_string;

config.lib
  require 'lib1.lib';
  require 'lib2.lib';
  require 'lib3.lib';

lib1.lib
  sub read_query_string

This show the hierarchy of the requires. 

If I restart the apache server (single process mode), and run ScriptA, everything ok. 
But ScriptB will break on "Undefined subroutine 
&Apache::ROOT::cgi_2dbin::ScriptB_2ecgi::read_query_string"



I've tried putting the entire content of ScriptA and ScriptB in subs and running the 
subs... no luck...

I've tried to load them in httpd.conf (PerlRequire /path/to/lib1.lib).. no luck
(not sure on how to access the functions)


Any help would be grately appreciated

thanX in advance

Frantzcy

-- 

Unreachability is bliss

Reply via email to