Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Suomi] <%test1 + test2%>

Quote Reply
Re: [Suomi] <%test1 + test2%> In reply to
Use a global:

sub {
my $tags = shift;
return $tags->{test1} + $tags->{test2} + $tags->{test3};
}

You can insert whatever perl code you like inside the global. The first argument is a hash ref of all the other tags on the page. You can either return a string, or return a hash ref (which will make new tags available).

Cheers,

Alex
--
Gossamer Threads Inc.
Subject Author Views Date
Thread <%test1 + test2%> Suomi 3824 Feb 12, 2002, 12:30 PM
Thread Re: [Suomi] <%test1 + test2%>
604 3632 Feb 12, 2002, 3:21 PM
Thread Re: [TheStone] <%test1 + test2%>
Suomi 3626 Feb 12, 2002, 3:31 PM
Thread Re: [Suomi] <%test1 + test2%>
Alex 3625 Feb 12, 2002, 5:56 PM
Post Re: [Alex] <%test1 + test2%>
Suomi 3625 Feb 12, 2002, 7:12 PM