Zachary,
Thanks for your response. However, I think there may have been a misunderstanding. My pass-in field is QG and the parent list is named GenderO. Therefore, I was guessing that I should swap GenderO and QG in your code - both spots. However, I'm still getting the same Error 132. Thoughts?
Here's my modified code:
Begin Unverified Perl
# Parameters
my $input = GETVALUE('QG');
my $index = 0;
my $flag = substr($input, $index, 1);
if ($flag == 1) {
ADD($GenderO, 1);
}
else {
ADD($GenderO, 2);
}
End Unverified
In the Admin module, the error references GenderO ...
System Error:
Global symbol "$GenderO" requires explicit package name at (eval 88) line 8, line 56. Global symbol "$GenderO" requires explicit package name at (eval 88) line 11, line 56.
I'm not sure what "explicit package name" means but that seems to be the problem.
Regarding your alternative suggestion, that was my original plan. However, Mailchimp only allows 255 characters max for links and when we tried to pass-in Panelist#, Project#, Age, Education, State, County, Zip, plus those much longer versions for Gender and Ethnicity we had about 284. So, using strings for Gender and Ethnicity is necessary.
Again, I appreciate your assistance on this problem.