Hi, Xeno Campanoli a ñÄrit : > I can't figure out Rescue. I have the following: > > rescue SystemCallError > print "parse failed on #{line}" + $! > raise > end > > and it doesn't compile: > > /validateMenuSpecs.rb:135: syntax error > rescue SystemCallError > ^ > ./validateMenuSpecs.rb:135: warning: useless use of a constant in void > context > ./validateMenuSpecs.rb:173: syntax error > You must have a context has the warning message tells you. So you must have something like begin # do something here rescue SystemCallError print "parse failed on #{ line}" + $! raise end You should then put the code that you expect to get an exception from after the begin clause. HTH Ghislain