perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@inodes.org>
Subject Re: connect to db using an imported .epl file
Date Mon, 14 Apr 2003 10:32:27 GMT
At Mon, 14 Apr 2003 10:40:14 +0200, Alexander Hartmaier wrote:
> I tried as Luiz wrote but it doesn't work.
> 
> nacadminlib.epl:
> [-
>   $req = shift;
>   $req->{dbh} = connectdbnacweb();
> -]
> 
> page.epl:
> [!
> use strict;
> use nactools;
> Execute ({ inputfile => 'nacadminlib.epl', import => 1 });
> !]
> [-
> eval
> {
> ....
>   $req = shift;
>   $dbh = $req->{dbh};
> ....
> };
> perish($@) if $@;
> -]

try actually doing what luiz wrote:

> luiz@engenhosolucoes.com.br (Luiz Fernando Bernardes Ribeiro) am 09.04.2003
> 14:17:31
> [-
> $req = shift;
> $req->{dbh} = DBI->...
> -]
> 
> And in all other pages put something like:
> [-
> Execute('connect.epl');
> $req = shift;
> $dbh = $req->{dbh};
> -]

-- 
 - Gus

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


Mime
View raw message