I am trying to access a PERL module from within a TPL file such that the values from the DCR could be manipulated within that module and the resultant is sent back to TPL for printing. The iwpt_dcr_value and iwpt_output are however not accessible in the PERL Module even after including PTParser module. Any help would be appreciated.
TPL:
-----
<iw_pt/>
<iw_perl>
use ICT:

review;
iwpt_output(ICT:

review::generatePreview());
</iw_perl>
PERL MODULE:
------------------
package ICT:

review;
use Teamsite

TParser;
sub generatePreview
{
my $test = iwpt_dcr_value('dcr.Root.Page1.Base.Keywords');
iwpt_output($test);
return $test;
}
1;