Hi,
sorry to bother you with this newbe problem, but I
am simply unnable to solve it without your help.
For testing I created a program called
"diplmod" that looks like this.
#!/usr/bin/perl -w
use lib
'/home/user/lange02/diplomarbeit/modules';
use Checking;
use CGI qw(:standard); use strict; print header();
test_check();
The module "Checking.pm" looks like
this.
package Checking;
use Apache::Reload; use Exporter;
@ISA = qw(Exporter); @EXPORT = qw(test_check); use strict;
sub test_check { print ("Checking ok now");
}
1;
The frist time I ran "diplmod" everything was ok.
Unfortunately changes to the
"test_check"-subroutine-output in the code have (most of the time) no impact on
what the browser shows when I reload "diplmod". Sometimes changes appear after
several reloads despite the module has already changed again. Creating a
new subroutine in the module (and adding it to to @EXPORT)
always leads to errors like
Status.pm: Undefined subroutine
&Apache::ROOT::cgi_2dbenver::diplmod::test_check2
I took thought "use Apache::Reload" would guaranty
that modules are reloaded if changed. I don't get any error-message for "use
Apache::Reload" and $INC{'Checking.pm'} returns the right path. I guess I
could solve the problem by restarting the server after every change.
Unfortunately I am not the administrator and the server contains programs of
several different users.
Does anyone have an idea how to solve this
problem? I guess I will have to ask the administrator to
change or add something but is it possible to solve my problem without
effecting all other programs on the server?
Thanks for your help,
Christoph
|
- Re: Module does not change Christoph Lange
- Re: Module does not change Stas Bekman
- Re: Module does not change Christoph Lange