hakana has asked for the wisdom of the Perl Monks concerning the following question:
The second time I get error messages like:xml-file: <exec> <tc id="001.001" /> <tc id="002.001" /> <tc id="004.001" /> <tc id="005.001" /> <tc id="006.001" /> <tc id="007.001" /> <tc id="008.001" /> <tc id="009.001" /> </exec> perl-code: my $xmlfile = new XML::Simple (Outputfile => $conf, ForceArray => 1, Keyattr => 'id', RootName=>'exec'); my $xml = $xmlfile->XMLin($conf); $xml->{'dut'}->{'ipaddress'} = "$ipaddress"; $xml->{'dut'}->{'macaddress'} = "$Macaddress"; $xml->{'dut'}->{'model'} = "$ProdShortName"; $xml->{'dut'}->{'frimware'} = "$Firmware_Version";
What is wrong?Pseudo-hashes are deprecated at ember.pl line 39. Argument "\x{31}\x{37}..." isn't numeric in hash element at ember.pl l +ine 39.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple add
by Gangabass (Vicar) on Dec 14, 2007 at 09:50 UTC | |
|
Re: XML::Simple add
by Jenda (Abbot) on Dec 18, 2007 at 15:44 UTC |