Hi

> I could use $req to pass the config around, but I
> couldn't figure out howto access $req in my subroutine.
>

At the moment you need to pass it to the sub. (This will change in one of
the next release, then $req will be available as global variable). For now
do

>
> base.epl
>
> [-

$req = shift ;

>   Execute ('include/epl/config.epl');
>   $sub = Execute ({object => 'include/epl/sub.epl'}, syntax =>
'EmbperlBlocks');

$sub->dbconnect($req);

> -]
>
>
> sub.epl
>
> [!
> sub dbconnect {

 $req = shift

>
>   my $dsn = "DBI:Pg:dbname=$req->{db_name}";
>....

Gerald

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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to