I have a problem with my array and I need your help.
I want to create an array with the result given by my if, for comparison with an another array.
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";
}
Then, later on
if (grep {$c ne $_} @matchs) {
print "$community;3\n";
I am a beginner and French, so be understanding with me.
""to@matchs$community_matchs =""and then pushing$community_matchs. This means your are pushing"". Maybe you need to dopush (@matchs, $community)instead??@matchs, and the purpose of$community_matchs?@communities,$communityand$c.push (@matchs, $community)I have the same result that$community_matchs =""