in reply to Re: writing an address book program
in thread writing an address book program

I hadn't thought of XML. I've actually been meaning to take a serious look at XML too. Thanks a bunch! Now I if I could only learn through osmosis...

__________________________________________________
%mexnix = (email = > "mexnix@hotmail.com", website => "http://mexnix.perlmonk.org");

  • Comment on Re: Re: writing an address book program

Replies are listed 'Best First'.
Re: Re: Re: writing an address book program
by andreychek (Parson) on Jun 07, 2001 at 01:30 UTC
    Osmosis.... MMmmmmmm... :-)

    Yeah, I actually picked up XML not too long ago myself.
    With the method you mentioned you are looking to use, XML::Simple
    might be your best bet.. you just point it to a XML
    file, and it will slurp the thing in and make it a
    hash of hashes (...of hashes of hashes, etc).

    However, just think how big this thing might get.. slurping the whole
    address book into a hash is loads of fun, but you might regret it later ;-)
    But you have to start somewhere, and XML::Simple is.. well.. simple :-) Have fun,
    -Eric
Re: Re: Re: writing an address book program
by kevin_i_orourke (Friar) on Jun 07, 2001 at 12:55 UTC

    There's an XML tutorial I found useful at w3schools, it's not Perl-related but a good intro to the world of XML.

    Update: After a comment by Beatnik I realised I should have included a link directly to the XML tutorial: here it is

    --
    Kevin O'Rourke
      In addition to the excellent XML tutorial Kevin mentioned,
      there is actually an XML::Parser tutorial located
      on PerlMonks that may help you get started if you are interested
      in working with XML::Parser, and not one of the higher level
      modules mentioned previously.

      Along with the useful tutorial provided at that node, it also contains the
      usual array of intelligent comments and code one often finds on this site.
      -Eric