From: Jack Dempsey Date: 2002-01-07T12:38:12+09:00 Subject: [ruby-talk:30415] modifier form of rescue This is a multi-part message in MIME format. ------=_NextPart_000_0088_01C19702.70A9F5C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable this seems to work: a,b =3D 5,0 x =3D a/b rescue print "Divide by zero!\n" but this doesn't require 'blahblah' rescue print "No such file!\n" tried it with parentheses etc...i can do it the normal way, just = wondering what i was doing wrong this way thanks! Jack ------=_NextPart_000_0088_01C19702.70A9F5C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
this seems to work:
a,b =3D 5,0
x =3D a/b rescue print "Divide by=20 zero!\n"
 
but this doesn't
 
require 'blahblah' rescue print "No = such=20 file!\n"
 
tried it with parentheses etc...i can = do it the=20 normal way, just wondering what i was doing wrong this way
thanks!
Jack
------=_NextPart_000_0088_01C19702.70A9F5C0--