Perl API: updated subs to accept data passed via hash references (pointers)