perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Schilling <>
Subject A TABLE-processing-with-[$ while $]-blocks-involved question
Date Sun, 14 Sep 2003 00:28:05 GMT
Just got done debugging an application that used the following form:

<TABLE WIDTH="100%">
         <TH>Contract ID</TH>
         <TH>Start Timestamp</TH>
         <TH>End Timestamp</TH>
         <TH>Minimum Hours Quoted</TH>
         <TH>Maximum Hours Quoted</TH>
         <TH>Minimum Fees Quoted</TH>
         <TH>Maximum Fees Quoted</TH>
  [$ while @contractinfo=$rsmbacontracts->fetchrow $]
         <TD>[+ $contractinfo[0] +]</TD>
         <TD>[+ $contractinfo[2] +]</TD>
         <TD>[+ $contractinfo[3] +]</TD>
         <TD>[+ $contractinfo[4] +]</TD>
         <TD>[+ $contractinfo[6] +]</TD>
         <TD>[+ $contractinfo[5] +]</TD>
         <TD>[+ $contractinfo[7] +]</TD>
         <TD>[+ $contractinfo[8] +]</TD>

[$ endwhile $]

The postgres log reported the following for the rsmbacontracts query:

LOG:  query: SELECT * FROM clientcontracts WHERE accountguid = 
LOG:  pq_recvbuf: unexpected EOF on client connection


I tried and tried to figure out what was wrong, and then it hit me: the 
[$ endwhile $] command needs to appear *before* the </TABLE> tag.

So, what happened?

I suspect it has to do with Embperl table processing, but am curious 
about the internals.

Richard Schilling

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message