> I'm trying to get Data::Dumper and require to work in the modperl
> environment so I can save some internal variables, but can't get the
> read portion to work.
> 
> The Data::Dumper portion works fine.  I dump out a list of variables.
> Then, on the next reload, I try to read these variables back in, but it
> doesn't work.  I'm just using a simple 'require' statement.
> 
> require "/path/to/file";
> print "$variable"
> 
> where /path/to/file contains
> $variable = 'testing';
> 
> Oh...And I'm using use vars qw($variable)...
> 
> I can't get this to work at all.  Calling it from the command line works
> fine.
> 
> Does anyone have any experience doing something like this, or have any
> insight as to what is going on and what I can do to get it to work?  Any
> help is appreciated.

Too easy :)

http://perl.apache.org/guide/porting.html#Reloading_Modules_and_Required_F
in general and specifically:
http://perl.apache.org/guide/porting.html#Configuration_Files_Writing_Mo

> 
> Thanks.
> 
> Arthur
> 
> 



_______________________________________________________________________
Stas Bekman  mailto:[EMAIL PROTECTED]    www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to