On Tue, 15 Jun 2004 14:55:05 +0900, you wrote: >>I did not advocate removing, a.k.a. undefining, >>instance variable, it would be a local variable i'd be undefining, probably not an instance variable (although i'd like that option also) >>for global variables, and removal method for local >>variables make no sense at all. only if the logic you use makes the code smaller or more efficient... larry wall added it to perl for a reason, and i'm guessing that he thought it would be handy :) >how to use such an undefine action in a clean way >is something I have yet to figure out ;-) i guess the code posted didn't do it for you? :) i wrote a nodelist processor for fidonet's nodelist, where i also used defined/undef. it's quick and dirty way to make sure you're working with valid data... >BTW: defined?() tells you about whether a variable >is defined, including local ones. unfortunatley it doesn't do me any good, as i'll want to undef it later.