I know a couple of people on the list use embperl so maybe
someone has come across this problem. I have the following scenario
vars.pl
--------
Has sommon variables defined that need to be used all over the
place
eg @states = ("NSW", "VIC"...);
index.epl
-----------
this file wants to use those variables so I've done a
[- require 'var.pl' -]
index.epl also does the following
[- Execute('customer.epl') -]
I do this because it's actually
[- Execute('$stage') -]
customer.epl
---------------
This is basically a form.
This is where the problem is customer.epl also wants to use everything
in vars.pl now they don't appear here because this file runs in a
different namespace to index.epl since that's what mod_perl does. But a
require 'vars.pl' seems to be ingored because it's already been loaded
or something. So everything is just undefined.
Anyone have a nice solution to this problem? I'm at the stage of
opening the file reading it into a variable and evaling it :)
I think the main problem here is that thing only get compile
once or something and aren't getting recompiled when the vars exist.
--
John Ferlito
Senior Engineer - Bulletproof Networks
ph: +61 (0) 410 519 382
http://www.bulletproof.net.au/
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug