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.
In reply to Re: Array copy or encapsulation break?
by Aristotle
in thread Array copy or encapsulation break?
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |