BzBeauty has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm familiar with XML using VBScript, but extremely clueless when it comes to Perl. I've attempted using XML::Simple, which does not have the level of functionality I'm used to with XML. Someone recommended XML::Smart, however, for that I need a library. I've downloaded the library, but have no idea whatsoever how to set it up for use. Can someone please give a step by step explanation on how to set up a library. Assume I'm totally stupid.
thanks,
too clueless
Re: Using Libraries
by kutsu (Priest) on Mar 18, 2004 at 21:54 UTC
|
tachyon wrote a wonderful tutorial on how to install modules, this should get you started.
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
| [reply] |
|
i can't find anything about libraries in there. don't misunderstand me, it's a good tutorial, but the OP seems
to have previously installed XML::Simple successfully, so i
guess they're familiar with module installing, so in this
case your answer wouldn't really help the OP.
i think
the question was, like Cody Pendant said, about installing
libraries that are needed by XML::Smart. of course this
is not so much related to perl but rather an OS related
question, but i also had problems installing XML::Smart,
and it would be nice to have a tutorial or a collection of helpful
links on that topic.
| [reply] |
|
| [reply] |
Re: Using Libraries
by jeffa (Bishop) on Mar 18, 2004 at 22:19 UTC
|
There is more than one way to skin the XML cat with Perl. I believe, correct me if i am
wrong, that you are more used to a DOM approach if you used VBScript. While i don't
particularly care for the DOM, there is XML::DOM. XML::Simple is great if you want
to quickly turn an XML document into an anonymous data structure, which i like to consider an
object that isn't an object. ;)
XML::Smart has been getting a lot of good word these days ... it basically removes some of
the headache of knowing what you are parsing ahead of time. Then there is the LibXML
modules, not to metion XML::SAX, XML::XPath, and XML::Twig. Of
course, these all require that you know how to install modules, and as kutsu recommended,
tachyon's tut is very good stuff. Let us know if you have any more questions and good luck!
| [reply] |
Re: Using Libraries
by Cody Pendant (Prior) on Mar 19, 2004 at 00:50 UTC
|
I think everyone's helping BzBeauty with installing Modules when what's needed is help installing libraries.
I certainly found this with anything to do with XML. Installing the module wasn't the problem, it was getting expat and libxml and libxslt and those things installed, which was remarkably hard, plus not even strictly speaking a Perl problem at all.
Has anyone got a tutorial or instructions on how to install these libraries?
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
| [reply] |
Re: Using Libraries
by tcf22 (Priest) on Mar 18, 2004 at 22:33 UTC
|
On Win32 you can use ppm.
At a command prompt type:
ppm
install XML::Smart
exit
| [reply] [d/l] |
|
|