From: ts Date: 2001-11-22T15:13:28+09:00 Subject: [ruby-talk:26113] Re: What am I missing here? >>>>> "R" == Ralph Mason writes: R> What am I missing here? $_ (like $~) is a local and thread local variable. R> irb(main):001:0> $_= "ruby" R> "ruby" R> irb(main):002:0> module Kernel ; def upcase ; $_.upcase! ; end ; end Inside #upcase $_ is nil because it was never assigned. Guy Decoux