ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Apache::Reload == Lost ENV
by Anthony Gardner other posts by this author
Dec 1 2006 6:00AM messages near this date
RE: New member | Re: Apache::Reload == Lost ENV
I'm def not the first to have noticed this, I googled but nothing sprang out at me.

I have a pkg var
our $DOCUMENT_ROOT = WWW::Utils-> document_root();

and I print %ENV at package level
WWW::Utils-> printenv();

If, after changing this pkg's code, I issue a new request, the DOCUMENT_ROOT is set okay and
 %ENV is printed out correctly. Then Apache::Reload kicks in, does its stuff and then re-run
s the pkg. This time the HTTP_* stuff is all missing and all that remains in %ENV are the va
rs we set up in apache conf files.

Thus DOCUMENT_ROOT (and others) have become unset.

Am I doing sth stupidly wrong here?

-Ants (feeling a bit foolish)

 

 Send instant messages to your online friends http://uk.messenger.yahoo.com 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved