Re: Sub form issues.
Ashley Winters <[email protected]> Thu, 2 Jun 2005 18:49:38 -0700 (PDT)
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Message-ID | <[email protected]> |
--- Roy Souther <[email protected]> wrote: > That solution works great, thanks. > > Is there a better way? Perl should clean up the garbage when it is > done. > Is there a destructor for Object Perl? Like > delete(this->{SubForm}); That should work. You just need to make sure no variables point at the form anymore and Perl will collect it. my $foo = this->{SubForm}; delete(this->{SubForm}); # form is still in $foo; not deleted yet! $foo = "die DIE DIE DIE!!!"; # now the form gets deleted Ashley Winters __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com