Hello.
I've been using do 'file' in my Embperl code to include some common files
between epl scripts (like, page url's, database passwords etc). However,
sometimes it seems that do 'file' doesn't load the file and the script
fails because variables don't have values they should have.
The code usually looks like:
[-
do 'location/common.pm';
Execute (location of common epl file);
-]
I don't use [! !] construct here because common.pm has variables values of
which can differ on various conditions.
Can someone point to the right direction? Should I use something else
instead of do - like Execute? The problem is that I want common.pm to be
loadable by normal Perl scripts/CGIs as well.
Thanks,
Vladimir
I've been using do 'file' in my Embperl code to include some common files
between epl scripts (like, page url's, database passwords etc). However,
sometimes it seems that do 'file' doesn't load the file and the script
fails because variables don't have values they should have.
The code usually looks like:
[-
do 'location/common.pm';
Execute (location of common epl file);
-]
I don't use [! !] construct here because common.pm has variables values of
which can differ on various conditions.
Can someone point to the right direction? Should I use something else
instead of do - like Execute? The problem is that I want common.pm to be
loadable by normal Perl scripts/CGIs as well.
Thanks,
Vladimir