我正在尝试重用我们内部的库函数,但由于我的输入中的新变种,事情不正常并且抛出错误.
我意识到问题是它现在正试图将一个时髦的句子分配为哈希键,如下面的键列表,正如您所料,它不喜欢它.有没有办法在对它进行哈希处理之前对其进行编码以防止Perl出现任何问题?
Document: Multiple Attribute Equals (#root3 #form input[type=hidden], #root3 #form input[type=radio])
Document: Attribute selector using UTF8 (#root3 span[lang=䏿–‡])
Document: Attribute Ends With (#root3 a[href $= 'org/'])
Document: Attribute Contains (#root3 a[href *= 'google'])
Document: Select options via [selected] (#root3 #select1 option[selected])
Document: Select options via [selected] (#root3 #select2 option[selected])
Document: Select options via [selected] (#root3 #select3 option[selected])
Document: Grouped Form Elements (#root3 input[name='foo[bar]'])
Document: :not() Existing attribute (#root3 #form select:not([multiple]))
Document: :not() Equals attribute (#root3 #form select:not([name=select1]))
Run Code Online (Sandbox Code Playgroud)