in reply to Re^2: Speed of Array Returns
in thread Speed of Array Returns
the mystery to me was why perl was not smart enough to do the same when I do return @longarray.
apparently, this has to do with arrays vs. lists. I do understand now that the two are different. alas, I do not understand what the purpose of a list is. it doesn't seem to make things faster, and is more restrictive. besides, the difference is confusing. if sub's returned arrays, then they could easily be assigned back to arrays, no matter how long.
thanks everyone, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Speed of Array Returns
by chromatic (Archbishop) on Feb 03, 2010 at 20:47 UTC |