in reply to requires in mod_perl

Just a follow up for those looking at this later...

I made three changes to the code in the initial post
  1. Used the full paths to the library in the require() statement.
  2. Moved the require()s above the use() in the main script.
  3. Also, moved the package statement before the BEGIN block in the package. (don't know why i put it there to begin with.)
Appears to have cleared up the undefined functions. My conception of what is actually going on now...correct me if I am wrong.

Compiled the library in the main script which allowed for the propagation of the library down the tree, rather than requiring after it has already been compiled and not loaded into the namespace of the main script.

Like I said...correct me if I am wrong.

Thanks for the help again.
Matt

Replies are listed 'Best First'.
Re: Re: requires in mod_perl
by Anonymous Monk on Sep 05, 2003 at 18:45 UTC
    Why is all that stuff in BEGIN blocks anyway?