Oops, my mistake. It does work. I though, after a quick test, that it didn't. Cool! Guillaume. Le samedi, 21 jun 2003, 00:33 US/Eastern, Yukihiro Matsumoto a ñÄrit : > Hi, > > In message "Re: rescuing errors.. catch-all" > on 03/06/21, Guillaume Marcais <guslist / free.fr> writes: > > |Could there be another form of load that would report parse errors as > an > |exception instead of crashing the entire process? > | > |begin > | load_with_precaution('junk.pl') > |rescue > | puts "Cannot load that piece of !@#$" > |end > > begin > load('junk.pl') > rescue SyntaxError > puts "Cannot load that piece of !@#$" > end > > should work. > > matz. >