[ic] XML::Simpler

Grant listbox at email.com
Fri Sep 19 12:58:17 EDT 2003


> > ###
> > Usertag xml_simpler Order filename
> > Usertag xml_simpler Routine <<EOR
> > use XML::Simpler;
> > sub {
> > 	my ($filename) = @_;
> > 	my $ref = XMLin($filename);
> > 	return $ref;
> > }
> > EOR
> > ###
> >
> > Here's the error:
> >
> > ###
> > Calling UI...UserTag 'xml_simpler' code is not a subroutine reference
> > In line 9 of the configuration file
> > '/trippystore/ic493/code/UserTag/xml_simpler.tag':
> > ###
> >
> > But if the "use XML::Simpler" line is removed, IC restarts
> without an error.
> > How can that be?  The syntax in the tag is exactly the same as
> that shown in
> > the docs here:
> >
> I suspect that you haven't installed the XML::Simpler module.
> Type this to check:
>
>     perl -MXML::Simpler -e 'print "$XML::Simpler::VERSION\n"'
>
> I use XML::Simple instead.  You can find XML::Simple on CPAN and
> the module is documented here:

That was the problem, XML::Simpler wasn't installed.  The command you wrote
above will come in very handy in the future too.  Thanks Kevin!

- Grant



More information about the interchange-users mailing list