From: u235321044@... (Ronald Fischer) Date: 2006-02-23T22:18:33+09:00 Subject: Re: How to evaluate file as Ruby code? > load will load and evaluate the file, it will reload and > re-evaluate. This is exactly what I'm looking for (and for my problem it is OK that I revert to local variables). But now I have a new problem: Exceptions thrown by 'load' can not be caught! For example, begin load ".defaultpar" rescue puts "file not found" end If the file does not exist, I get the error message in `load': no such file to load -- .defaultpar (LoadError) Of course I can circumvent it by testing before for the existence of the file, but I wonder how I can find (from the Ruby specification), which exceptions can be caught by "rescue" and which ones can not. Ronald -- Spam protected message from: Sent by mn-pg-p-e-b-consultant-3.com from siemens in field com Posted via http://www.usenet-replayer.com