Ok... I've got a simple search results listing like this in the environment:
results $VAR = [
{
'Username' => '000000',
'ReviewID' => '47',
'hidden' => '<input type=hidden name="1-ReviewID" value="47">',
'ClaimID' => '11',
'timestamp' => '%©'
}
];
I want to pull the value 47 (in this instance) and use it in a global template. How do I do that? Here is what I have now but it pulls up a NULL value.
sub {
#--------------------------------------------------------------------
my $tags = GT::Template->tags;
my $reviewid = $tags->{results}->{ReviewID};
return $reviewid;
}
Shouldn't this work? How is the correct way of doing it?
results $VAR = [
{
'Username' => '000000',
'ReviewID' => '47',
'hidden' => '<input type=hidden name="1-ReviewID" value="47">',
'ClaimID' => '11',
'timestamp' => '%©'
}
];
I want to pull the value 47 (in this instance) and use it in a global template. How do I do that? Here is what I have now but it pulls up a NULL value.
sub {
#--------------------------------------------------------------------
my $tags = GT::Template->tags;
my $reviewid = $tags->{results}->{ReviewID};
return $reviewid;
}
Shouldn't this work? How is the correct way of doing it?