With perl 5.20 (Debian 8.0) there are problems to use the VMware CLI with the perl Script CHECK_VMWARE_API.PL
VMware-vSphere-Perl-SDK-5.5.0-1384587.

The error could be:

Possible precedence issue with control flow operator at /usr/share/perl/5.20/VMware/VICommon.pm line 2147

In this case is sufficient to modify the line n. 2146 in the file VICommon.pm (/usr/share/perl/5.20/VMware)

from

return defined $user_agent->cookie_jar and.
$user_agent->cookie_jar->as_string ne '';

to

return (defined $user_agent->cookie_jar and
$user_agent->cookie_jar->as_string ne '');

If it doesn’t work, could be a SOAP problem and the libwww-perl version.

The solution is to downgrade Net-HTTP and libwww-perl with following commands:

perl -MCPAN -e shell
o conf urllist push http://backpan.perl.org
install GAAS/Net-HTTP-6.03.tar.gz
install GAAS/libwww-perl-6.03-tar.gz

The second Command loads older releases to the urllist.