in reply to Array copy or encapsulation break?
keys() references the elements, but when the list is returned, a copy is made.sub GetBigList { my $self = shift; return keys( %{$self->{'BigList'}} ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array copy or encapsulation break?
by BrowserUk (Patriarch) on Aug 06, 2003 at 21:41 UTC |