This smacks of homework, but...
I think in this case you probably want a hash, not an array, assuming PIC will not have duplicates.
my %foo = ( 18 => 56, 25 => 10, 12 => 45, .. ); print $foo{ 18 };
--
Diplomacy is the art of saying "Nice doggie" until you can find a rock.
naChoZ
In reply to Re: Working with Arrays
by naChoZ
in thread Working with Arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |