some support for calling perl and ocaml back and forth