From: matz@... (Yukihiro Matsumoto) Date: 2003-06-21T13:33:01+09:00 Subject: Re: rescuing errors.. catch-all 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.