perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "abhishek jain" <>
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
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
[- Execute ('announcement_temp1.epl')  -]

          <table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
              <td width="100%" align="left"
<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>
                [+ $row->[0] +]
                [- $r->{expanded} = 'block'; -]

[$ endforeach $]
<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} +]')




Now in the output i have multiple lines of html starting from <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,
Abhishek jain

View raw message