in reply to Twig.PM and parsing

Somehow I doubt the problem comes from XML::Twig. I have extracted the getAidTitle function and run it on test XML data... and it works fine, except of course I get a warning for your use of or "No title", which I guess used to be a croak "No title", and another one on the next line.

Do you also have the same problem if you replace the entire getAidTitle by a constant?

One last remark: you should use strict; at the top of your code, it would catch most typos in variable names.

Replies are listed 'Best First'.
Re: Re: Twig.PM and parsing
by Comrade (Novice) on Aug 06, 2001 at 20:15 UTC
    If I replace the title with a constant, it works out
    fine... The error happens when I call parse or parsefile.