Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Using Libraries

by BzBeauty (Sexton)
on Mar 18, 2004 at 21:44 UTC ( #337819=perlquestion: print w/replies, xml ) Need Help??
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

Replies are listed 'Best First'.
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

      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.

        should have meantioned reply was based on chatter in chatterbox, which showed that BzBeauty hadn't installed the module correctly. That's what I get for quick replies.

        "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

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!


    (the triplet paradiddle with high-hat)
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?

    =~y~b-v~a-z~s; print
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

    - Tom

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://337819]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-05-29 12:26 GMT
Find Nodes?
    Voting Booth?