perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: import of symbols in Embperl pages (was: DBI in Embperl)
Date Thu, 05 Apr 2001 05:36:52 GMT
>I'm use my module which work with DBI.
>I exproted functions in the header this module.
>Second page which I make Exec({inputfile => "email.epl"}) don't see
>functions from my module but this functions I use in first file which
>make Exec.
>I try include my module in both epl files and divide.

Every Embperl page runs in it's own package, to have separate namespaces to
avoid collision of variables names. So you have to import the symbols your
module export in both pages, i.e. write the

[! use mymodule ; !]

in every page you want to have these symbols available.


P.S. Another solution would to force the same package name of both pages by

Execute ({inputfile => 'email.epl', package => __PACKAGE__}) ;

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message