jettero has asked for the wisdom of the Perl Monks concerning the following question:
Not that you'd ever need to do something like this, but could you?
Load up top, hit 'M', and watch the thing grow evilly... I tried using delete instead of undef, but it didn't help.use Gtk; Gtk->init; Gtk->set_locale; for(1..200) { my $o = new Gtk::Window; undef $o; sleep 1; print "$_\n"; }
I actually have a very good reason for this. I need to generate Gtk::CList's on the fly, but I realized I have no way to delete the old ones... I could really use some help here. Actually, a solution to changing the number of columns in a Gtk::CList would be equally helpful. ;)
How do you delete an unwanted object in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you delete an unwanted object?
by m_turner (Sexton) on Nov 13, 2000 at 04:33 UTC |