in reply to Re^2: Count Using Splitin thread Count Using Split
As an alternate approach, have you considered using one of the CPAN modules, such as XML::Twig? XML is notoriously difficult to parse.