> > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]