No, no and no, for all 3 "parse with index and substr" snippets. How hard is it to use XML::Simple, especially as I believe it can now accept SAX input, and thus does not depend on XML::Parser anymore, so you can use XML::SAX::PurePerl, Matts pure Perl XML parser.
It is not hard to uxe XML::Simple,but that is not the point.
You are not parsing XML here, you are parsing the exact format of the message _today_...
Exactly. Nowhere do I claim the snippets would do anything mroe than parse the XML tickers as they appear today.
You can have fun with this code, but I don't think it is a good thing to show it here.
Excuse me?
I suggest you write a second version of those tools using XML::Simple and XML::SAX::PureSax, this way you will learn something, help others by showing them the proper way to process XML, and even garner some ++ in the process.
I already have.
Reposting them is not of interest to me.
My snippets do exactly what they claim, not more not less.
Look ma', I'm on CPAN.
** The Third rule of perl club is a statement of fact: pod is sexy.