> 1)
> So the problem is that I have globally set
> PerlSetEnv      EMBPERL_ESCMODE 0
> in httd.conf but it probably doesn't work

b6 uses native Apache configuration directives, so either say

EMBPERL_ESCMODE 0

(without the PerlSetEnv) or turn scanning environment variables on with

Embperl_UseEnv on

(the first one is the prefered way, the second only there for backwards
compatibility)

>
>   $self->AddTagInside('test', ['type'], undef, undef, {
>                 perlcode => q[{
>                                 _ep_rp(%$x%, "this is value of the type
> %&type%");
>                 }]
>   });
>

The %&type% will generate Perl code to retrieve the value for the text
attribute, since you put it inside a string it simple will be displayed.
Here is the correct solution:


   $self->AddTagInside('test', ['type'], undef, undef, {
                 perlcode => q[{
                                 _ep_rp(%$x%, 'this is value of the type' .
%&'type%");
                 }]
   });

The single quote between & and type tells the Embperl compiler that the
result is a string and need to be quoted

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