in reply to XML::Parser Style=>Subs and undefined subroutines
On my system the output isuse strict; use XML::Parser; my $p1 = new XML::Parser(Style => 'Subs'); $p1->parse('<foo id="me">Hello World</foo>'); sub foo { my ($expat, $tag, %a) = @_; print "foo before death\n"; die "i cannot die"; print "foo after death\n"; } sub foo_ { my ($expat, $tag, %a) = @_; print "i am alive and running foo_\n"; }
foo before death i am alive and running foo_
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::Parser Style=>Subs and undefined subroutines
by antirice (Priest) on Oct 01, 2003 at 01:46 UTC |