We don't bite newbies here... much | |
PerlMonks |
POE and recursionby OverlordQ (Hermit) |
on Sep 02, 2007 at 22:18 UTC ( [id://636643]=perlquestion: print w/replies, xml ) | Need Help?? |
OverlordQ has asked for the wisdom of the Perl Monks concerning the following question:
Greetings monks. Currently I'm writing a POE script that parses certains sets of input upon request. Input is, thankfully, easy to parse XML. However the problem I'm running into is is that some of the data in the XML file contains what we could call 'See Also' records, in which they point to additional files which need to be fetched and parsed, which also may contain 'See Also' records, and so on and so forth. Now with a non-POE script I'd just keep a count of how many 'See Also' doc's parsed, and keep fetching/parsing until it reaches 0, but with POE's event driven nature I'm confused as how store the temporary data and how to know when I've reached the 'bottom' so I know it's safe to start doing the actual processing of the XML. Any ideas and suggestions would be greatly appreciated. See this node for an accurate description of what I'm trying to accomplish
Back to
Seekers of Perl Wisdom
|
|