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.

Thanks.

Arthur

Reply via email to