logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Sub form issues.: msg#00006

Subject: Re: Sub form issues.
--- Roy Souther <roy@xxxxxxxxxxxxxx> 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 



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>