array1 array2
the_for_below and_press
this_job online_Please #note that we have space at begining of online_Please.
complete the_form_below #note that we have space at the end of the_form_below.
and_press submit_will_only #note that we have space at begining of and_press.
####
array1[0]=array2[2] i.e. the_for_below = complete
array1[3]=array2[0] i.e. the_for_below = and_press
####
for ($k=0;$k<$i;$k++) #where $i is the length of array.
{
for($l=0;$l<$i;$l++){
if(chomp($array1[$k]) eq chomp($array2[l]))
{
print"\n$array1[$k],$array2[$l]";
}
}
####
the_for_below and_press
the_for_below online_Please
the_for_below the_form_below
the_for_below submit_will_only
this_job and_press
this_job online_Please
this_job the_form_below
this_job submit_will_only
... and so on..