Hello, Could someone help point out how to use scalar within Xpath query? I need to use $script in the query but it returns nothing. I am somewhat confused about the interpolation in this case.
Thanks, Isarin use XML::XPath; my $xp = XML::XPath->new(filename => '/dssweb/prog/navi/links.xml'); my $script = "/cgi-bin/rates/showrate"; my $nodeset = $xp->findnodes('/navigator/nav_group/[EMAIL PROTECTED] = "$script"] | /navigator/nav_group/nav/[EMAIL PROTECTED] = "$script"]');