Think about Loose Coupling | |
PerlMonks |
Re^2: 3d arraysby deibyz (Hermit) |
on Apr 07, 2005 at 16:50 UTC ( [id://445779]=note: print w/replies, xml ) | Need Help?? |
If you need real coordinates, an Array wouldn't be enough. You can switch to a HoH (Hash of hashes), something in the lines of:
Then you can retrieve the values with $HoH->{312}{67.8}. Just be aware that hash keys are strings, so use sprintf if you get them from variables, or you're going to get strange results.
In Section
Seekers of Perl Wisdom
|
|