> Embperl (1.2.0) causes a core dump when I put in a loop control
> statement. For
> instance, in the following snippet of code, when the 'last' line
> is reached,
> the apache child dumps core.
>
> [- $i = 0 -]
> [$ while ($i < 10) $]
>    [+ $i +]<br>
>    [$ if ($i == 5) $]
>       [- last -]
>    [$ endif $]
>    [- $i++ -]
> [$ endwhile $]
>
> The problem occurs regardless of what looping mechanism I use
> (foreach, while,
> etc). Can someone confirm that this problem also occurs on their system,
> please?
>

"while/endwhile" are Embperl control statements and "last" is a Perl
statement. This can't work at all, because Perl doesn't know anything about
Embperl's while/endwhile. This is completly handled by Embperl itself.

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 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

Reply via email to