It generates the message: Can't locate object method "new" via package "XML::XSLT" (perhaps you forgot to load "XML::XSLT"?) at program.pl line 6.use XML::XSLT; use strict; use warnings; my $xsl = 'sample.xsl'; my $xmlfile = 'sample.xml'; my $xslt = XML::XSLT->new($xsl, warnings => 1);
From docs, I get
XML::XSLT makes use of XML::DOM and LWP::Simple, while XML::DOM uses XML::Parser. Therefore XML::Parser, XML::DOM and LWP::Simple have to be installed properly for XML::XSLT to run.By checking the modules with CPAN, I get following results:
XML::Parser is up to date (2.34). XML::DOM is up to date (1.44). LWP::Simple is up to date (1.41)
I might be missing something obvious, but cannot figure it out myself...
In reply to XML::XSLT problem by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |