XML::Simple error

XML::Simple error

am 24.01.2007 02:16:11 von eldwin

Hi all,

I'm messing around with the XML::Simple module and am getting the
following error: No value specified for 'ForceArray' option in call to
XMLin() at XMLto837I.pl line 23

Here's the code I'm using...

#!/usr/bin/perl -w

use strict;
use warnings;
use XML::Simple qw(:strict);

my $MMXMLtmp;
my $EDItmp;
my $xml = XML::Simple->new();

if (@ARGV < 2 or @ARGV > 2)
{
die < usage: perl XMLto837I.pl

EOF
}

$MMXMLtmp = $ARGV[0];
$EDItmp = $ARGV[1];

my $data = $xml->XMLin($MMXMLtmp);

exit;

Basically, what I want to do is parse the tag and value from a XML.

Thanks for any advice in advance.

Re: XML::Simple error

am 24.01.2007 05:36:30 von paduille.4060.mumia.w+nospam

On 01/23/2007 07:16 PM, edSanDiego wrote:
> Hi all,
>
> I'm messing around with the XML::Simple module and am getting the
> following error: No value specified for 'ForceArray' option in call to
> XMLin() at XMLto837I.pl line 23
> [...]

Read about "strict mode" in the XML::Simple POD: "perldoc XML::Simple"


--
Windows Vista and your freedom in conflict:
http://techdirt.com/articles/20061019/102225.shtml