I've a Problem with the correct array on Perl.
That is more a Perl Problem, but maybe can someone help me.
That is my try
my $function = "core_role_assign_roles";
my %assignment = ();
#my %assignment = ('roleid' => $role_id, 'userid' => $user_id, 'contextid' => $context_id,);
$assignment{"roleid"} = $role_id;
$assignment{"userid"} = $user_id;
$assignment{"contextid"} = $context_id;
my $assignments = (%assignment);
my $params = {assignments => %assignment};
#my %params = ("assignments" => ["roleid" => $role_id, "userid" => $user_id, "contextid" => $context_id]);
<EXCEPTION class="invalid_parameter_exception">
<MESSAGE>Ungültiger Parameterwert gefunden</MESSAGE>
<DEBUGINFO>assignments => Ungültiger Parameterwert gefunden: Only arrays accepted. The bad value is: 'contextid'</DEBUGINFO>
</EXCEPTION>