Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [dauhee] Numerical Operations on Variables

Quote Reply
Re: [dauhee] Numerical Operations on Variables In reply to
Goto template->globals and add:

i => sub {
my $tags = shift;
return $tags->{j} + 2;
}

and then put <%i%>. That will run the function and return the output (j + 2).

Cheers,

Alex
--
Gossamer Threads Inc.
Subject Author Views Date
Thread Numerical Operations on Variables dauhee 2843 Dec 11, 2001, 9:55 AM
Thread Re: [dauhee] Numerical Operations on Variables
Jagerman 2775 Dec 11, 2001, 10:06 AM
Thread Re: [jagerman] Numerical Operations on Variables
dauhee 2772 Dec 12, 2001, 3:53 AM
Thread Re: [dauhee] Numerical Operations on Variables
yogi 2765 Dec 12, 2001, 4:20 AM
Thread Re: [yogi] Numerical Operations on Variables
dauhee 2800 Dec 12, 2001, 7:43 AM
Post Re: [dauhee] Numerical Operations on Variables
Jagerman 2778 Dec 12, 2001, 7:50 AM
Thread Re: [dauhee] Numerical Operations on Variables
Alex 2744 Dec 12, 2001, 11:29 AM
Thread Re: [Alex] Numerical Operations on Variables
dauhee 2731 Dec 13, 2001, 4:55 AM
Post Re: [dauhee] Numerical Operations on Variables
Alex 2729 Dec 13, 2001, 12:37 PM