I even learned (with help) how to pass a Perl array reference into a C function which gets converted into a C unsigned char  , and how to return a Perl array back from C (I'll write another blog post about these two actions in the coming days).