I am calling a CGI Task from a workflow. This CGI Task allow user to select multiple options from a select box.
The problem is that when user select multiple values, i am getting array's address but not the values.Though when user select single value it works fine.
I tried following code snippets
1. my
@value =$cgi->{form}{approval_group};
print LOG "Arrray value::
@value\n";
foreach my $selectedgroup (
@value) {
print LOG "Selected value $selectedgroup\n";
}
2. my
@value =$cgi->{form}{approval_group};
my $value_length=
@value;
my $string_value="";
my
@test_value="";
my $i=0;
for($i=0; $i<$value_length; $i++)
{
print LOG "Array Content $i::$value[$i]\n";
@test_value=$value[$i];
print LOG "
@test_value\n";
}