in reply to Working with Arrays
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Working with Arrays
by Anonymous Monk on Jul 07, 2004 at 12:10 UTC | |
by revdiablo (Prior) on Jul 07, 2004 at 17:46 UTC |