perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Importing variables and subrutines from a config and/or subs file,please help..
Date Fri, 27 Dec 2002 19:37:12 GMT

Hi:
>
>
> I have a config file conf.epl and its content is:
>
> [-
> $dbname="mydb";
> $dbusername = "ckg";
> $dbpassword = "clave";
> $stylecss="files/style/style.css";
> -]
>
> In other file i load this file(conf.epl):
>
> [-
>
> Execute ({inputfile => 'conf.epl', import =>1, package =>__PACKAGE__});
>
> -]
>

import does not import any variables (only [$ sub xx $]), without the import
=> 1 it will work, because the variables are set for every run

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message