All,
I was wondering if I could get clarification on
something.
I have a class object called $x.
What I want to do is pass this $x into objects
$y & $z, and store it internally
Thus:-
$y->{x}=$x;
$z->{x}=$x;
This Is ok, and shouldn't cause any problems.
However what happens if, in $y I have a method which does this:-
sub method
{
my $y=shift;
my
$z=MYMod::Z->new(x=>$y->{x});
$y->{z}=$z;
}
I am concerned I'm creating some sort of memory
leak? I Desperately need to be able to 'cache' objects internally, however I
don't necesarrily have to cache '$x' internally, but it would simplyify things a
great deal if I could.
So Does 'sub method' cause problems, or should it
be ok.
Kind Regards
Marty
|
Title: Secure FTP
- [Perl-unix-users] Secure FTP Mundell, R. \(Ronald\)
- Re: [Perl-unix-users] memory issues Martin Moss
- Re: [Perl-unix-users] memory issues Jenda Krynicky
- Re: [Perl-unix-users] memory issues Martin Moss