Isn't it fun to mix Perl punctuation with XPath? My take would be that you are missing the quotes around $save. Plus as mentionned previously you should backslash your @'s
In such a case I use qq{} to create the string instead of the usual quotes, it gets a little clearer:
@nodes = $xp->findnodes( qq{//A["$save" = \@idref]//B[\@id = "$save"]} +);
In reply to Re: XML::XPath and variables
by mirod
in thread XML::XPath and variables
by mush4brains
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |