Probably, you are not getting any response to this question because it is too low level, and it is not clear what you want to achieve. Try describing the real problem to give us some context (see also
XY Problem).
You can also try posting your question to the ssh-sftp-perl-users mailing list.