http://www.perlmonks.org?node_id=750464


in reply to xpath problem

Also, it looks like you're using double quotes and need to add a \ in front of every /.
For example
$xp->find("queries/query/$element")->get_nodelist
should be more like
$xp->find("queries\/query\/$element")->get_nodelist