topical media & game development
professional-xml-18-perl-streamcustomers.pl / pl
use XML::Parser;
my parser = new XML::Parser();
my \%cities;
my p = shift;
my elem =~ /city/) {
p = shift;
my elem =~ /customers/) {
foreach cities}) {
print cities}->{flag) {
my (data) = @_;
data}++;
parser->setHandlers(Start => \&start_handler,
End => \&end_handler,
Char => \&char_handler);
file);
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.