perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kim <ben...@yahoo.com>
Subject Re: 9999: Error (no description) Unstructured forward jump
Date Mon, 12 Oct 2009 16:57:29 GMT
I guess it won't complain if you can run the loops and assemble an output table string, inside
a [-  -] block,  and then output the obtained string with [+$table+].
The code will be messier and cgi-like but it can be one alternative, in case you want to keep
the processing logic.


Ben Kim


----- Original Message ----
From: Ed Grimm <ed_grimm@raytheon.com>
To: George Piskorsky <george@piskorsky.com>; embperl@perl.apache.org
Sent: Fri, October 9, 2009 8:36:39 AM
Subject: Re: 9999: Error (no description) Unstructured forward jump

Actually, it wouldn't generate imbalanced tags - the final if has additional logic to balance
the last row - but it does trigger EmbPerl's imbalanced tag detection anyway.  Either generate
one row per loop iteratiom or turn off EmbPerl's table parsing.  Since that loop will probably
run faster unrolled once (so there's only one if check in it), and your table should have
balanced rows anyway (put the if check on the *contents* of the second <TD>, rather
than eliminating the whole element), I strongly recommend the former approach.


----- Original Message -----
From: "Williams, David G. (HQ-JF000)[INDYNE INC]" [david.g.williams@nasa.gov]
Sent: 10/08/2009 03:41 PM EST
To: George Piskorsky <george@piskorsky.com>; "embperl@perl.apache.org" <embperl@perl.apache.org>
Subject: RE: 9999: Error (no description) Unstructured forward jump



It is complaining because your code would create unbalanced <TR></TR> tags.  Why
are you writing <TR> when the modulus is 0 but writing </TR> if modulus is 1?
 I think you should redesign your code.

-----Original Message-----
From: George Piskorsky [mailto:george@piskorsky.com]
Sent: Thursday, October 08, 2009 4:16 PM
To: embperl@perl.apache.org
Subject: ERR: 9999: Error (no description) Unstructured forward jump

Hello!

I have Apache2.2 with mod_perl and Embperl2.3. The following script does not work:

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
     <TITLE>Test</TITLE>
</HEAD>
<BODY>
     [-
         @array = (1,2,3,4,5,6,7,8);
         $num = scalar @array;
         $i = 0;
     -]
     <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
         [$ while ($i < $num) $]

             [$ if (($i % 2) == 0) $]
                 <TR>
             [$ endif $]

                 <TD> [+ $array[$i] +] </TD>

             [$ if (($i % 2 == 1) || ($num - 1 == $i)) $]
                 </TR>
             [$ endif $]

             [- $i++ -]
         [$ endwhile $]
     </TABLE>
</BODY>
</HTML>

Apache give empty page and in error-log of apache I see the following string:
[746]ERR:  9999:  Error (no description) Unstructured forward jump, /usr/local/www/apache22/data/test1.epl
Line 14 ->
Line 18

Can anybody help me?

--
George Piskorsky


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


The following line is added for your protection and will be used for analysis if this message
is reported as spam: (Raytheon Analysis: IP=140.211.11.3; e-from=embperl-return-8771-eg=raytheon.com@perl.apache.org;
from=david.g.williams@nasa.gov; date=Oct 8, 2009 8:43:22 PM; subject=RE: 9999: Error (no description)
Unstructured forward jump)

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

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


Mime
View raw message