in reply to Re: Re: Re: Re: OO - problem with inheritance
in thread OO - problem with inheritance
Note that just copying the hash doesn't work for data structure you have used. Values of hash are hashrefs themselves so new copy will reuse parts of copied data structure. Thus changes in copy of data structure affect original data structure.
--
Ilya Martynov
(http://martynov.org/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: OO - problem with inheritance
by uwevoelker (Pilgrim) on Jan 14, 2002 at 22:14 UTC | |
by IlyaM (Parson) on Jan 14, 2002 at 22:19 UTC | |
by uwevoelker (Pilgrim) on Jan 14, 2002 at 22:25 UTC |