File: myhandler.pl

package info (click to toggle)
libxml-perl 0.08-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 488 kB
  • sloc: perl: 1,961; xml: 301; sh: 31; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
# This is the example script in doc/UsingPerlSAX.pod

use XML::Parser::PerlSAX;
use MyHandler;

my $my_handler = MyHandler->new;
my $parser = XML::Parser::PerlSAX->new( Handler => $my_handler );

foreach my $instance (@ARGV) {
    $parser->parse(Source => { SystemId => $instance });
}