XML::Simple error

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 ( [at] ARGV < 2 or [at] ARGV > 2)
{
die <<EOF
usage: perl XMLto837I.pl <MMXMLfilename> <EDI837filename>

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.
eldwin [ Mi, 24 Januar 2007 02:16 ] [ ID #1606966 ]

Re: XML::Simple error

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
paduille.4060.mumia.w[1] [ Mi, 24 Januar 2007 05:36 ] [ ID #1606967 ]
Perl » comp.lang.perl.modules » XML::Simple error

Vorheriges Thema: Using Win32::OLE on 64 Bit Windows
Nächstes Thema: Expect: Getting PID at both ends of ssh