You need to escape the the @'s where they are in XPath symbols. Perl is trying to interpolate arrays there and coming up empty.
@nodes = $xp->findnodes( "//A[$save = \@idref]//B[\@id = $save]" );
After Compline,
Zaxo
In reply to Re: XML::XPath and variables
by Zaxo
in thread XML::XPath and variables
by mush4brains
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |