From: Dave Thomas Date: 2000-01-29T23:40:31-06:00 Subject: [ruby-talk:01197] Question about 'open' If I run: f = open("|-", "w+") if f == nil print "in Child\n" else print "Got: ", f.gets, "\n" end it outputs Got: in Child However, open("|-", "w+") { |f| if f == nil print "in Child\n" else print "Got: ", f.gets, "\n" end } outputs Got: nil What am I misunderstanding here? Thanks Dave