No such thing as a small change | |
PerlMonks |
XML::Parser Style=>Subs and undefined subroutinesby rkg (Hermit) |
on Oct 01, 2003 at 01:16 UTC ( [id://295488]=perlquestion: print w/replies, xml ) | Need Help?? |
rkg has asked for the wisdom of the Perl Monks concerning the following question:
Hi -- I am new to XML::Parser. Question: what the heck does XML::Parser Style=>'Subs' do the function namespace? It appears the Subs sets something or other that lets you choose not to define any sub tag {} or sub tag_{}. That's sort of convenient and cool. But in the code below, why doesn't perl die on the "subroutine that does not exist" call? It seems Very Dangerous if XML::Parser turns off checking for missing subs. Any way to ask XML::Parser to maintain customary perl behavior -- eg calling a non-existent sub throws a fatal error? Befuddled --
Back to
Seekers of Perl Wisdom
|
|