melguin has asked for the wisdom of the Perl Monks concerning the following question:
It seems to me that it would be easier on the end user to have it return an array, but if the list gets really big a reference might be better.
When is it best to return an array, and when is it better to return a reference to an array?
melguin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advantages to returning array vs. reference
by pjf (Curate) on Oct 14, 2001 at 04:51 UTC | |
|
Re: Advantages to returning array vs. reference
by hopes (Friar) on Oct 14, 2001 at 18:18 UTC |