artist has asked for the wisdom of the Perl Monks concerning the following question:
Here is my code.
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...
--Artist
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::XSLT problem
by bmann (Priest) on Nov 16, 2006 at 22:15 UTC | |
by artist (Parson) on Nov 16, 2006 at 23:05 UTC | |
by gellyfish (Monsignor) on Nov 17, 2006 at 09:33 UTC | |
by artist (Parson) on Nov 17, 2006 at 15:43 UTC | |
by gellyfish (Monsignor) on Nov 17, 2006 at 15:54 UTC | |
| |
Re: XML::XSLT problem
by graff (Chancellor) on Nov 17, 2006 at 02:12 UTC | |
by Trainer (Initiate) on Mar 18, 2015 at 18:13 UTC | |
by Anonymous Monk on Mar 18, 2015 at 23:08 UTC | |
by Trainer (Initiate) on Mar 19, 2015 at 10:41 UTC | |
by Corion (Patriarch) on Mar 19, 2015 at 10:49 UTC |
Back to
Seekers of Perl Wisdom