Subject: | wsdl2perl.pl -- typo halts execution |
I used ActiveState's PPM for x64 perl to load SOAP-WSDL, but noticed
that Template.pm was not installed. So I downloaded today from CPAN
SOAP-WSDL-2.00.99_3 and built the package. I have Windows7 64 and used
Visual Studio Express.
When I went to run wsdl2perl.pl (the file appears to be timestamped at
the time I built 2.00.99_3 over Activestate's install), I got:
Can't modify constant item in scalar assignment at
C:\Perl64\site\bin\wsdl2perl.
pl line 27, near "1,"
BEGIN not safe after errors--compilation aborted at
C:\Perl64\site\bin\wsdl2perl
.pl line 31.
I modified line 27 of wsdl2perl.pl as follows:
from:
xmltypes = 1,
to:
xmltypes => 1,
Conclusion: a missing ">" character in the hash definition.
Thereafter, I ran wsdl2perl.pl and it executed successfully.