The Perl API now supports “Keep Alive” and encrypted communications when run with the version of Perl supplied by VMware. You should use the sm_perl command that is shipped with the VMware Smart Assurance software, in order to successfully run the Perl API.
You can use a pure Perl implementation without keepalive or encryption by setting the environment variable SM_DISABLE_FLOW_WRAPPER.