i want add joint elements to @neo.
and print ...
User Profile
Collapse
-
How to compare array items
Hi
Help Me Please
...Code:#compare @a & @b elements. #if $a[x] = $b[y] then add to @neo #print sorted list of @neo elements @a = qw(BB Ninja an FFF); @b = qw(ali reza cd an); @neo = qw(); my $sza = @a; my $szb = @b; for($j=0; $j <= $szb; $j++) { for($i=0;$i <= $sza;$i++) { $c1 = $a[$j]; $c2 = $b[$i]; if($c1==$c2)
No activity results to display
Show More
Leave a comment: