Query: xml::parser::style::subs
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Parser::Style::Subs(3) User Contributed Perl Documentation Parser::Style::Subs(3)NAMEXML::Parser::Style::SubsSYNOPSISuse XML::Parser; my $p = XML::Parser->new(Style => 'Subs', Pkg => 'MySubs'); $p->parsefile('foo.xml'); { package MySubs; sub foo { # start of foo tag } sub foo_ { # end of foo tag } }DESCRIPTIONEach time an element starts, a sub by that name in the package specified by the Pkg option is called with the same parameters that the Start handler gets called with. Each time an element ends, a sub with that name appended with an underscore ("_"), is called with the same parameters that the End handler gets called with. Nothing special is returned by parse. perl v5.16.2 2011-05-24 Parser::Style::Subs(3)
Similar Topics in the Unix Linux Community |
---|
AIX Links |
At A Glance Coloured Real Time Bargraph Generator... |
Shopt -s histappend |
My first PERL incarnation... Audio Oscillograph |