> I have some perl libraries that check to see if they are running in
> Embperl so they can use certain things (typically OUT and escmode).
> What's the best way to make it possible for them to run under either
> environment?
Instead of using Embperl::OUT etc. directly, make an alias into your
package. You can make this alias to HTML::Embperl or Embperl, depending from
where you are called, e.g.:
*OUT = \*Embperl::OUT ;
*fdat = \%Embperl::fdat ;
or if you want to have compatibility, you can create the alias in
HTML::Embperl namespace:
*HTML::Embperl::OUT = \*Embperl::OUT ;
*HTML::Embperl::fdat = \%Embperl::fdat ;
but this will not work if you use 1.3 and 2.0b6+ on the same Apache server.
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]