>
> I have this structure:
>
> in file index.epl
> [-
> Execute ({inputfile => 'mainprogram.epl', package => __PACKAGE__});
> Execute ($theeplsitepath.'skins/'.$skin.'/colors.epl');
> Execute ({inputfile => $theeplsitepath.'includes/subs.epl', package =>
> __PACKAGE__});
> -]
>
> If inside file mainprogram.epl i try to execute other file like this:
> Execute ({inputfile => $eplsite_path.'skins/'.$skin.'/blocksdef.epl',
> package => __PACKAGE__});
>
> The file blocksdef.epl can not access the variables, it iseems it is not
> loaded in the same __PACKAGE__
>Basicly this should work, maybe this is a bug in Embperl 2, I can't say yet. Anyway useing package in this way, eats up a lot of memory, because the files need to be compiled into the package of every page, so you end up with your common code mulitple times in memory. A better way to do this, is to use the Embperl request object/hash. At the top of every page say [- $r = shift -] $r is a hashref, you can use this hash to store your constants and variables. $r will reference the same hash in every page, so you can use it to easily pass your constants variables around. Gerald --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
