You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Alexander Hartmaier <Al...@t-systems.at> on 2002/06/25 15:28:33 UTC

Embperl 2.0b8 local escmode


Hi again!

This line isn't working any more in b8:

<td colspan=3><a href="[+ local $escmode=0; $ENV{'REQUEST_URI'}
+]&expandadmin=1">Expand Administrativa</a></td>

WHY?

THX Alex



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


Re: Embperl 2.0b8 local escmode

Posted by Gerald Richter - ecos gmbh <ri...@ecos.de>.
Hi again!
>
> This line isn't working any more in b8:
>
> <td colspan=3><a href="[+ local $escmode=0; $ENV{'REQUEST_URI'}
> +]&expandadmin=1">Expand Administrativa</a></td>
>
> WHY?
>

Because it should have also not work in any Embperl 2 version before, but
did by accident. The reason is that it was much slower before. Anything
inside [+ +] must be a valid Perl expression (there was a bug before b8, so
this wasn*'t necessary inside URLs before). To get your code working write


<td colspan=3><a href="[+ do { local $escmode=0; $ENV{'REQUEST_URI'} }
 +]&expandadmin=1">Expand Administrativa</a></td>

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


Re: Embperl 2.0b8 local escmode

Posted by Axel Beckert - ecos gmbh <be...@ecos.de>.
On Tue, Jun 25, 2002 at 03:28:33PM +0200, Alexander Hartmaier wrote:
> This line isn't working any more in b8:
> 
> <td colspan=3><a href="[+ local $escmode=0; $ENV{'REQUEST_URI'}
> +]&expandadmin=1">Expand Administrativa</a></td>

Write 

<a href="[+ do { local $escmode=0; $ENV{'REQUEST_URI'} } +]&expandadmin=1">

> WHY?

Perfomance reasons.

This is the following fix mention in Gerald's announcement:

   - removed do { } around expressions of [+ +] blocks inside urls, because
     this cost performance and now all [+ +] behaves the same. Reported by
     Michael Smith.

            Regards, Axel Beckert
-- 
-------------------------------------------------------------
Axel Beckert      ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     beckert@ecos.de         Voice:    +49 6133 926530
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