From: John Ydil Date: 2010-02-11T23:53:02+09:00 Subject: Re: Some noob questions Hi, me again... As i said before, I "play" with ruby on a light linux (ruby 1.8.2). I made my script on my computer (ruby 1.8.7) and move it to my linux. I works fine on my computer but an error occured when i launch it on my linux. Here is my code : File.foreach("/etc/raddb/users").each_slice 4 do |name, ip, dump, table| puts name.strip! puts ip.strip! puts table.strip! end here is the file /etc/raddb/users login Auth-Type :=Local, User-Password == "bonjour" Framed-IP-Address = ipaddress, Fall-Through = No # table 254 Here is the error : ./test.rb:12:in `foreach': no block given (LocalJumpError) from ./test.rb:12 I wonder if it's due to the difference between the 2 versions, Do you have an idea ? -- Posted via http://www.ruby-forum.com/.