From: Wyss Clemens Date: 2002-02-11T18:56:55+09:00 Subject: RE: handling errors ruby versions 1.7.x have no "problem" with your script. 1.6.3 though, behaves as you described. What ruby version are you using? Clemens > -----Original Message----- > From: Tobias Reif [mailto:tobiasreif@pinkjuice.com] > Sent: Montag, 11. Februar 2002 10:09 > To: ruby-talk@ruby-lang.org > Subject: handling errors > > > Hi, > > somehow I had this working. > > --- > class Doc > def make > "Content-type: image/svg+xml\n\n"+ > '' > h.l > end > end > > doc = Doc.new > > begin > puts doc.make > rescue > print "Content-type: text/plain\n\n" > puts 'myself speaking: ' +$! > end > --- > > with the erratic fifth line, I get > --- > err.rb:6:in `make': undefined local variable or method `h' for > # > (NameError) > from err.rb:13 > --- > > instead of > --- > Content-type: text/plain > > myself speaking: [...] > --- > > Tobi > -- > > * peace&love. > * http://www.pinkjuice.com/ >