write SV
let haskell function called by perl can fetch args and return values