VMware {code} Community
mutombo
Contributor
Contributor
Jump to solution

VMware-vSphere-Perl-SDK-5.5.0-1384587 broken with perl 5.20

as the topic said, the vmware SDK is broken with perl 5.20.2.

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

is there a fix available?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
stumpr
Virtuoso
Virtuoso
Jump to solution

The return order precedence isn't clear in VICommon.pm.  Probably 5.20.2 added that additional warning.

Untested, but try changing line 2146 of VICommon.pm to:

return (defined $user_agent->cookie_jar and

                  $user_agent->cookie_jar->as_string ne '');

Reuben Stump | http://www.virtuin.com | @ReubenStump

View solution in original post

0 Kudos
2 Replies
stumpr
Virtuoso
Virtuoso
Jump to solution

The return order precedence isn't clear in VICommon.pm.  Probably 5.20.2 added that additional warning.

Untested, but try changing line 2146 of VICommon.pm to:

return (defined $user_agent->cookie_jar and

                  $user_agent->cookie_jar->as_string ne '');

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos
mutombo
Contributor
Contributor
Jump to solution

thanks alot, this fixes the error message, but it seems this wasnt my problem after all.

i forgot that the perl SDK has problems with Net-HTTP and libwww-perl.

downgraded both to 6.03 and everything works fine again.

0 Kudos