我的阵列有问题,需要您的帮助。
我想用 my 给出的结果创建一个数组if
,以便与另一个数组进行比较。
if (grep {$community eq $_ } @communities) {
my $community_matchs = "";
print "$community;$login;$last_at;;$size;1\n";
push (@matchs, $community_matchs);
#my array
}
else{
print "$community;$login;$last_at;;$size;0\n";
}
然后,以后
if (grep {$c ne $_} @matchs) {
print "$community;3\n";
我是初学者和法国人,所以请理解我。