[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-perl
Subject:    Re: [Kde-perl] Sub form issues.
From:       Ashley Winters <jahqueel () yahoo ! com>
Date:       2005-06-03 1:49:38
Message-ID: 20050603014939.55082.qmail () web50911 ! mail ! yahoo ! com
[Download RAW message or body]

--- Roy Souther <roy@SiliconTao.com> 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 
_______________________________________________
Kde-perl mailing list
Kde-perl@kde.org
https://mail.kde.org/mailman/listinfo/kde-perl
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic