问题描述
当我运行代码的哈希表时,该表似乎考虑了空格(“:405%”)。我们该如何过滤?我尝试使用if条件执行此操作,但它似乎不起作用。
my @g = ();
foreach my $e (@genres){
my $genre = $e->as_text;
@g = split(/[à| ]/,$genre);
foreach my $e2 (@g){
if ($e2 ne ("Genres:" or ' ') ) {
$index{$e2}++;
}
}
}
预先感谢您的回答
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)