Subject: | Quoting-warnings with translate() |
using translate() in an xpath expression gives the following warnings:
Unrecognized escape \Q passed through at (eval 180) line 1, <GEN0> line 22.
Unrecognized escape \E passed through at (eval 180) line 1, <GEN0> line 22.
They stem from line 287 of file XML/XPath/Function.pm:
eval "tr/\\Q$find\\E/\\Q$repl\\E/d, 1" or die $@;
As I understand it, \Q and \E are only supported in regular expressions, not in tr//.