|
Posted by Michel Rodriguez on November 11, 2005, 4:12 pm
Please log in for more thread options
Henry Law wrote:
> The following short test program is the kernel of a problem I'm having
> using xpath searches with XML::Twig::XPath elements. Can someone help
> me find out what I'm doing wrong? It seems that if I use my own
> subroutine to do the xpath search I get an error from the Twig code, but
> if I code the same statements inline the results are what I expect.
Weird,
It looks like when returning from the sub, the twig field for the root
element is lost (it becomes undef), which causes problems later on (the
XML::XPath object is attached to the twig itself).
I'll look some more (you can file a bug with RT if you want)
Thanks.
--
mirod
|