Subject: | Typo in wsdl2perl.pl '=' instead '=>' near 'xmltypes' in %opt hash |
In the 2.00.99_3 version there is probably a typo in the wsdl2perl.pl
script:
[adam@lelek bin]$ perl -c wsdl2perl.pl
Can't modify constant item in scalar assignment at wsdl2perl.pl line 30,
near "1,"
BEGIN not safe after errors--compilation aborted at wsdl2perl.pl line 34.
which seems to be related to (see the last lines):
[adam@lelek bin]$ head -n 31 wsdl2perl.pl|tail -n 20
my %opt = (
url => '',
prefix => 'My',
attribute_prefix => undef,
type_prefix => undef,
element_prefix => undef,
typemap_prefix => undef,
interface_prefix => undef,
server_prefix => undef,
base_path => 'lib/',
proxy => undef,
generator => 'XSD',
server => 0,
client => 1,
namespaces => 0,
use_typemap => 0,
verbose => 0,
xmltypes = 1,
);
After adding that missing '>' it seems working just fine.
Found with:
[adam@lelek bin]$ perl -v
This is perl, v5.10.1 (*) built for i686-pld-linux-thread-multi
and on:
[adam@lelek bin]$ uname -a
Linux lelek 2.6.33.5-1 #1 SMP Fri May 28 12:36:12 CEST 2010 i686
Intel(R)_Atom(TM)_CPU_N270___@_1.60GHz PLD Linux
Thanks,
Adam