From: Florian Gross Date: 2004-07-16T04:47:16+09:00 Subject: Re: hex / rescue mark greenlancer wrote: > hello, Moin! > > there are a few questions after I've read the > manual... > > ``String.hex幹 converts a hex-string to a decimal > number. But how to convert a decimal number to a > hex value? I think that String#hex should not be used anymore. I would use "deadbeef".to_i(16) for converting from a String to a number and 36.to_s(16) for the other way. > If I do > > begin > ... > rescue > ... > end > > catches the rescue part every error? > I can also write ``rescue StandardError, SyntaxError, ... It is the same as 'rescue StandardError' -- if you want to rescue all errors you should use 'rescue Exception' instead. > greetings, > mark Regards, Florian Gross