in reply to Re: Trouble getting size of list returned from sub
in thread Trouble getting size of list returned from sub
Aha! That makes sense. Thank you (and to the others who replied with similar suggestions). Now, if I do this, can you tell me anything about what's going on under the hood? I.e., is there a performance hit for shoving a 1000's-long list into an anonymous array, and then dereferencing that array to get its length? Or is Perl smart enough to do all of that with one copy of the original list in memory?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trouble getting size of list returned from sub
by ColonelPanic (Friar) on Nov 26, 2012 at 09:57 UTC | |
|
Re^3: Trouble getting size of list returned from sub
by Anonymous Monk on Nov 26, 2012 at 10:27 UTC | |
by Anonymous Monk on Nov 26, 2012 at 10:33 UTC |