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: RE: does EmbperlBlocks really ignore html
Date Fri, 06 Apr 2007 05:24:06 GMT
> 
> So just to confirm my understanding:
> 
> if a sub uses only [- -] and returns an html value, then it 
> can and should be called with [+ +].
> alternatively, the sub can use [+ +] internally and the 
> caller can use [- -] to call it.
> just don't mix the two.
> 

Yes.

In addition, if you have no output inside the sub, then just use a 
normal Perl sub. If you have output in the sub, you should use [$ sub 
$]. The benefit of using [$ sub $] and [+ +] inside, is that you get 
only the from perl  outputed data escaped, while when outputing a large 
block of html, you have to care by your own about proper escaping

Gerald

 

** Virus checked by BB-5000 Mailfilter **

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


Mime
View raw message