i am working with Apache / mod_perl on a WinXP system and
i have following problem, i have written a perl script which is running like i want.
as i want to use parts of it in other scripts i picked the relevant subroutines into a new file in the same directory naming it list_engine.pm and starting with
Expand|Select|Wrap|Line Numbers
- package list_engine;
- use strict;
- use warnings;
- use Exporter;
- use vars qw(@ISA @EXPORT $VERSION);
- @ISA = qw(Exporter);
- @EXPORT = qw(list_engine);
- $VERSION = '0.01';
But when i insert following line in the main perl program
use list_engine "C:/apa/mod_perl/mask/";
apache throws error 500
with list_engine not found in @INC
BEGIN failed--compilation aborted at C:/apa/mod_perl/mask/list_L.pl
when i delete the use line from the main program, the scripts runs ok like it would use the previous compiled version (with the sub routine inside the main program).
Inserting the lib file in one of the INC folders solves the problem (but i would like to use the lib in my parent folder).
2.Second question is, how can i force apache./ mod_perl to recompile the scripts, after changing something in the .pm file ?