M
M. Muzaffar
Hi!
If some one can help me to fix this code. I want to store the value of
faulty_array[num] in faulty_line and correct_array[num] in
correct_line so that I can access them at later stage. I will be
thankful.
..................
faulty_line=[]
correct_line=[]
c_length=correct_array.length
f_length=faulty_array.length
c_length.times do |num|
if correct_array[num] != faulty_array[num]
faulty_line= faulty_array[num] #problem arises at this line
correct_line= correct_array[num] #problem arises at this line
end
end
puts faulty_line[0]
puts faulty_line[0]
If some one can help me to fix this code. I want to store the value of
faulty_array[num] in faulty_line and correct_array[num] in
correct_line so that I can access them at later stage. I will be
thankful.
..................
faulty_line=[]
correct_line=[]
c_length=correct_array.length
f_length=faulty_array.length
c_length.times do |num|
if correct_array[num] != faulty_array[num]
faulty_line= faulty_array[num] #problem arises at this line
correct_line= correct_array[num] #problem arises at this line
end
end
puts faulty_line[0]
puts faulty_line[0]