in reply to Re: Nice HTML::Template feature
in thread Nice HTML::Template feature

Hi,<pb> please note that 1 is printed before 2 in case of:
$t->param( "hallo" => &littletest );
And this is what one expects because it runs the sub before calling param.

Or am I wrong??
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

Replies are listed 'Best First'.
Re: Re: Re: Nice HTML::Template feature
by Juerd (Abbot) on Apr 18, 2002 at 11:46 UTC

    And this is what one expects because it runs the sub before calling param.

    Right. How can that be one of HTML::Template's feature? When you call a sub, the returned value is used, so it reads "hallo" => "test", but just before "test" is returned, the "1" with timestamp is printed.

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.