I'm doing some template programming in RT (http://bestpractical.com/rt), and it uses Perl. Unfortunately, I've only dallied with Perl very occasionally.
I'm trying to call a sub procedure that starts off with:
sub PrepareEmailUsingTemplate {
my %args = (
Template => '',
Arguments => {},
@_
);
Since this is a part of the lib, I don't get to change it.
The call I'm making to it is:
my ($template, $msg) = RT::Interface::Email->PrepareEmailUsingTemplate(
Template => 'CCReplyFirstMessage' );
return (0, $msg) unless $template;
And I'm getting "Odd number of elements in hash assignment at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 552. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:552), with is the first line of the sub.
I know I'm doing something whacky in passing the parameter. How should I be passing it?