in reply to Array copy or encapsulation break?
Where do you see a list of the elements getting returned? You're getting a list with a single scalar - an array reference. You're even dereferencing it yourself in the for loop.# ... return $self->{'BigList'}; # ... foreach my $element ( @{ $self->{'Big_List'} } ) { # ...
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array copy or encapsulation break?
by shemp (Deacon) on Aug 06, 2003 at 17:01 UTC | |
by dragonchild (Archbishop) on Aug 06, 2003 at 17:08 UTC |