From: Michael Guterl Date: 2007-10-02T06:48:21+09:00 Subject: Re: void value expression for 'retry' ------=_Part_12506_32502041.1191275299922 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/1/07, Mohammad Khan wrote: > > following code returns, > retry.rb:13: void value expression > > What is wrong with this code? > > #!/usr/bin/env ruby > > > retry_count = 0 > retry_max = 4 > > begin > sleep 30 > > rescue Interrupt > if ( retry_count < retry_max) > retry_count++ retry_count++ is not valid ruby code. so that could be causing some problems. retry > end > rescue > raise > end > > > Thanks, > Mohammad > ------=_Part_12506_32502041.1191275299922--