What you wrote bombed because frankly I don't think you have understood much of the docs for XML::Twig (which is probably understandable if you don't know any Perl). There are much easier to start with Perl than starting with a complex module, especially when using it for something it's not really made for.
As for the problem with pyx it seems that a cut'n paste did not quite work as planned, so here is an hopefully better version:
pyx bigXML.xml | perl -n -e '$nb{$1}++ if( m/\A\((.*)\n/); END { map { print "$_ used $nb{$_} time(s)\n";} sort keys %nb;}'This works on *nix, windows would probably require different quotes. If you want to understand what's going on you can use perldoc XML::PYX, for info about PYX, perldoc perlrun to understand the -n and -e options, perldoc -f map and perldoc -f sort.
In reply to Re^5: Using XML Twig to summarize a large file
by mirod
in thread Using XML Twig to summarize a large file
by Mr.Churka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |