in reply to Re^2: my array is almost a hash, but keys are not unique.
in thread my array is almost a hash, but keys are not unique.
Indeed I do. The Perl for/foreach loop is generally much clearer than the C for loop, and is almost never bug bait (the C for loop is prone to off by 1 errors).
It's the 'destroying the source array' part that may be more of an issue if the array is large enough that you might think twice about copying it and are into premature optimization.
|
|---|