MozRepl::RemoteObject: NS_ERROR_DOM_INVALID_EXPRESSION_ERR: The expression is no t a legal expression. at C:/Perl/site/lib/WWW/Mechanize/Firefox.pm line 2059 #### ... my @found = map { $doc->__xpath($_, $n) } $q; # @$query; ...