----- Original Message -----
From: Pang, Joseph <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 12:30 AM
Subject: Parsing newbie


> Is there any lib/module I could use for data parsing?
>
> I has some data format that the grammar is known (quite simple actually),
> but
> I need to write some function/API such that I could read the data and
> reformat
> (to XML maybe), dump it into database, and recall those data easily in the
> future.

If you give a little description of the data format i might be able to help.
If you want a good XML module look at XML::Twig (Needs XML-Parser).
If yuo install XML-Parser i think you best take 2.29 cause newer version
require seperate installation if expat...

In general it might be a good idea to look into the datastructures perl
offers, likes hashes and arras. Read Perlref too, so you now how to build
datastructures.
You can then parse your data into your own datastructure and then convert it
to XML

Maarten

Reply via email to