perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "abhishek jain" <m...@ejain.com>
Subject Strange behavior in Embperl
Date Tue, 01 Jan 2008 05:48:00 GMT
Hi Friends,
I have installed embperl on my VPS and i am experiencing strange behavior of
it.
1. The errors located by it is not in same line number as told by the error.
2. A very strnage behavoir is :
I have this code in executed in base.epl
--base.epl
.....
[- Execute ('announcement_temp1.epl')  -]
.....
--announcements_temp1.epl

          <table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
id="AutoNumber3">
            <tr>
              <td width="100%" align="left"
valign="top"><b>Announcements:</b>
<font size="2" > <a href="javascript:collapse_announce.slideit()">Show /
Hide</a> </font></p>
[- $r=shift;
#  print Dumper $r->{announcements};
-]
<div id="announce">
[$ foreach $row (@{$r->{announcements}}) $]
                <b>[+ $row->[1] +]</b>
                &nbsp;&nbsp;&nbsp;
                [+ $row->[0] +]
                <br>
                [- $r->{expanded} = 'block'; -]

[$ endforeach $]
</div>
<script type="text/javascript">

//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec,
enablepersist(true/fase), [initialstate] )
var collapse_announce=new animatedcollapse("announce", 1000, false,'[+
$r->{expanded} +]')

    </script>

              </td>
            </tr>


          </table>

--------------------
Now in the output i have multiple lines of html starting from <tr>
...........</tr>.
Is my installation of embperl not correct or what.
I am running Centos 4.5 with modperl and httpd installed via yum and Embperl
on force install on CPAN shell.

Awaiting quick responses as i am stuck,
Thanks,
Abhishek jain

Mime
View raw message