From: Bigmac Turdsplash Date: 2011-02-06T13:43:40+09:00 Subject: pass the paramater? mply=0 kill=0 open("list.lfi","rb").each do |block| ['lol', '%00'].each do |suffix| while mply < 10 if block.include? ".log" puts suffix suffix kill=1 break print("!!! Check your log.html !!!") end if kill==1; break;end mply=mply+1 end if kill==1; break;end mply=0 end if kill==1; break;end end print suffix.last i always do things the hard way... i dont know how to get suffix out side of the loop... -- Posted via http://www.ruby-forum.com/.