in reply to xml confuse

As a general rule, trying to parse XML with a regexp is not a very good idea. Why don't you try any of the XML modules you can find on CPAN? You can start, for example, with XML::Simple

Replies are listed 'Best First'.
Re^2: xml confuse
by Anonymous Monk on Apr 12, 2008 at 11:38 UTC
    I tried using XML::Simple and it works ok when I have one thing to match, like:
    <Year>1992</Year>
    and I thought it was easy.. But when it came to matching more than one occurences of the same element (Author), I cannot do it... I think it has something to do with objects or something like that and I do not have a clue in this area...