From: Guillaume Marcais Date: 2003-06-25T12:15:29+09:00 Subject: Re: rescuing errors.. catch-all 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 �crit : > Hi, > > In message "Re: rescuing errors.. catch-all" > on 03/06/21, Guillaume Marcais 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. >