The stupid question is the question not asked | |
PerlMonks |
Re^4: The most efficient way for searching for an element in an array?by afoken (Chancellor) |
on Jan 08, 2016 at 19:54 UTC ( [id://1152334]=note: print w/replies, xml ) | Need Help?? |
That breaks as soon as the elements of @arr may contain the string used to join the arrays. Also, it roughly doubles the memory usage. Imagine a 2 GByte @arr on a machine with 4 GByte RAM. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|