Hi,

$row has a special meaning in Embperl (see 
http://perl.apache.org/embperl/pod/doc/Embperl.-page-3-.htm#sect_8)

So in your case, replace $row by any other variable name and it should 
work

Gerald
 

> -----Original Message-----
> From: abhishek jain [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 01, 2008 6:48 AM
> To: embperl@perl.apache.org
> Subject: Strange behavior in Embperl
> 
> 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
> 
> 

** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to