Again, this is where it's useful to consider the OO approach and think
of variables as just the symbols you use to reference to objects. If
the symbol you're using is not assigned to any object (a.k.a. it
points to nil) then it it undefined.

On Mon, 14 Jun 2004 05:50:55 +0900, tony summerfelt
<snowzone5 / hotmail.com> wrote:
> 
> On Sun, 13 Jun 2004 20:08:48 +0900, you wrote:
> 
> in my particular case i'm thinking black box approach. i don't want
> the variable to 'exist' any more.
> 
> i don't know if that's how it's thought of in perl, but when i
> undef($x), $x is no longer there for me to use unless i assign it
> something, and i can test that it isn't with:
> 
>  if ! defined($x) # do something.
> 
> as long as ruby 'acts' the same way, it's all i need.
> 
>