I am sorry! That was a typo created when I copied the code and pasted it in Perl Monks editor. It is one $. And still the problem exists...
But I realized that I am doing 'new' in a loop and that's why I am loosing the data.
Can someone suggest me how to correct it?
Is there a way to create new Xml::Twig and set the handler later?
Thanks!