in reply to Re^6: XML::Writer oddness
in thread XML::Writer oddness

my has Perl use a lexically scoped variable instead of global package variables. Freeing the similar named package variable does not affect the lexical.

There doesn't seem to be anyway to unbless in Perl's API.