On Thu, 5 Apr 2007 07:59:38 +0200, "Gerald Richter - ECOS GmbH" <[EMAIL PROTECTED]> said: > > > > 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.
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. -mda --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]