This happens with Apache::Registry 2.01:

The variable $Apache::Registry::NameWithVirtualHost changes 
from 1 to 0 after the first request after server start. As a 
result, the namespace changes. Among other things, this breakes 
"require".

Script for demo:

---------------------
#!/bin/perl -w
use CGI qw(:standard);
print header('text/plain');
print "$Apache::Registry::NameWithVirtualHost\n";
print *x{PACKAGE};
----------------------
Results in:

1
Apache::ROOTBVZR_2ebibvb_2eac_2eat::zsvs::perl::test_2epl

But after reload:

0
Apache::ROOT::zsvs::perl::test_2epl

Greetings 

Heinrich Mislik


--
Heinrich Mislik
Arbeitsgruppe Bibliotheksautomation
email: [EMAIL PROTECTED]        Tel.: +43 512 507 8754

Reply via email to