I don’t quite understand the “true” you used above, what I’m trying to do is
open a buch of files to process, if one of them does not exist, jump to the
next file. I’m a little confused about what should between rescue … end??
If it return true, then go to next file, if false, the loop finishes??
where can I find a reference to different kind of runtime errors? It
seems that there are no information on that (Exception Class?) in
pickaxe…
p. 303
Could you please give me some index or whatever thing I can search? I’m
using the htmlhelp version. tks.
begin
# do something
rescue SyntaxError, NameError => boom
# do something
end
is the same than
begin
# do something
rescue SyntaxError, NameError
boom = $!
# do something
end
So, => in this case is not hash, it make sense to add into the symbol faq
I don't quite understand the "true" you used above, what I'm trying to do is
open a buch of files to process, if one of them does not exist, jump to the
next file. I'm a little confused about what should between rescue ... end??
If it return true, then go to next file, if false, the loop finishes??