in reply to XML::XPath and variables
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"]} +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::XPath and variables
by mush4brains (Acolyte) on Sep 13, 2002 at 17:54 UTC | |
by mirod (Canon) on Sep 13, 2002 at 18:21 UTC |