When destructing a variable,one can say `$var = ''` or `$var =
undef`,which way is good?

like two cases follow,

sub DESTROY
{
    my $self = shift;
    $self->{array} = undef;
}

or

sub DESTROY
{
    my $self = shift;
    $self->{array} = '';
}

Given $self->{array} is a large array's reference.
Thanks!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to