Joel Pearson wrote in post #1121289:
> Just use error handling properly.
>
> begin
> #standard code
> rescue
I am looking for the below operations,but only when error will be
occured :
a = (1..10)
i=0
until a.size>10
next i+=1 if i<5 # this should be done on Error
p a[i]
i+=1
end
If still I am not clear,please let me know the confusions.
until val == nil
#line1
#line2 #<~~ error can be generated here.If error happened I want to
start
from #line1 again.skipping the below code.
#line3
...
end
Thanks