in reply to Using Positions from one array to find the value in the same position of another.
for Lookups, a hash would be a much better structure. Are you trying to come up with some sort of encryption scheme ?
A few pointers:
* @words would probably work better as %words (a hash).
* When you do I/O using <>, you most likely need a "chomp"
* If @numbers2 contains 0..40K in random order, why not sort it, so it is indexed easier ?
Alternatively, create an index array that indirectly accesses @numbers2.
In any case .. let us know what you want to build, and I'm sure you will get many helpful suggestions, and perhaps, even code.
This is not an optical illusion, it just looks like one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Positions from one array to find the value in the same position of another.
by AnomalousMonk (Archbishop) on Apr 29, 2016 at 20:33 UTC | |
|
Re^2: Using Positions from one array to find the value in the same position of another.
by RuZombieSlayer (Novice) on Apr 29, 2016 at 20:35 UTC |