You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jaak <va...@hot.ee> on 2001/08/25 21:35:18 UTC
embperl and use module
Hi,
I have another problem :-(
In test.html
---
[- $req = shift; $obj = $req->{obj}; -]
[+ $obj->show("hello", "quoteme"); +]
---
where $req - is mySQL DBI
and $obj is wwwmodule.pm
I call out show. But how can I add $req (mySQL support to wwwmodule.pl)?
(I mean - how can I make a $req->{dbh}->quote("quoteme"); in
wwwmodule.pl...)
I hope you can understand my thought...
Thanks...
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: embperl and use module
Posted by Gerald Richter <ri...@ecos.de>.
> I call out show. But how can I add $req (mySQL support to wwwmodule.pl)?
> (I mean - how can I make a $req->{dbh}->quote("quoteme"); in
> wwwmodule.pl...)
If you are using EmbperlObject you can use the EMBPERL_OBJECT_HANDLER_CLASS
directive to make $req a derived class from your class
Is this what you want to do ?
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