Possible Duplicate:
How to break outer cycle in Ruby?
array_1 = %W(http://www.abc.com www.xyz.com www.pqr.com)
array_2 = %W(www.abc.com www.exmple.com)
array_1.each do |a1|
array_2.each do |a2|
next if(a1.include?(a2))
end
puts a1
end
I want to skip those entries which are present in array_2. Is there anyway I can skip printing a1 if condition is satisfied? Ruby doesn't have label like java and I want to skip outer loop. :(
Any help would be great