perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter - ECOS GmbH" <rich...@ecos.de>
Subject RE: RE: does EmbperlBlocks really ignore html
Date Thu, 05 Apr 2007 05:59:38 GMT
> 
> I figured out my problem.
> I was using [+ my_sub() +] instead of [- my_sub() -] where 
> my_sub was defined using [$ sub my_sub $] ... [$ endsub $]
> 
> It wasn't obvious to me (nor do i see it documented 
> anywhere), but calling such subs with [+ +] seems to wreak havoc.
> 

Using [+ my_sub () +] will just, in addition to what the sub is already 
outputing, output the return value of the sub, which might be in your 
case some html.

Gerald



> -mda
> 
> On Tue, 3 Apr 2007 10:59:36 +0200, "Gerald Richter - ECOS 
> GmbH" <richter@ecos.de> said:
> > Hi,
> >  
> > > 
> > > Does the EmbperlBlocks syntax really ignore everything outside of 
> > > embperl block?
> > 
> > Yes, 100% sure
> > 
> > Gerald
> > 
> > 
> > > I don't have a minimal test case yet, but it still seems to be 
> > > randomly rearranging content and disappearing my table tags and 
> > > whatnot.
> > > 
> > > -mda
> > > 
> > > 
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > For additional commands, e-mail: embperl-help@perl.apache.org
> > > 
> > > 
> > > ** Virus checked by BB-5000 Mailfilter ** 
> > > !DSPAM:416,461207ac310984712610620!
> > > 
> > > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 
> ** Virus checked by BB-5000 Mailfilter ** 
> !DSPAM:416,4612c350326191030413537!
> 
> 

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


Mime
View raw message