I've got a perl script in my template which does an iteration, so as to use the [i+1]th value sometimes and the ith other times. I am now struggering to find how to include a file. Before when I had a normal iteration (and no perl) i used:
[html][/html]
My code currently looks like this:
[html]
<br>my
@list = iwpt_dcr_list('dcr.offers.panels');<br>for (my $i = 0; $i <
@list; $i++) {<br> if ($i == 3) {<br> $anchor = $list[$i]->value('anchor');<br> $html = $list[$i]->value('offer');<br><br> iwpt_output(qq(<br> ...<br> *INCLUDE FILE HERE - location uder $html*<br> ...<br> ));<br> }<br> else {<br> $anchor = $list[$i+1]->value('anchor');<br> $html = $list[$i]->value('offer');<br> <br> iwpt_output(qq(<br> ...<br> *INCLUDE FILE HERE - location uder $html*<br> ...<br> ));<br> } <br>}<br>
[/html]
Thanks