[Kde-perl] Sub form issues.

Ashley Winters jahqueel at yahoo.com
Fri Jun 3 03:49:38 CEST 2005


--- Roy Souther <roy at 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 


More information about the Kde-perl mailing list