http://www.perlmonks.org?node_id=1009435

Phinix has asked for the wisdom of the Perl Monks concerning the following question:

Good morning monks. In the project I am working on, I can see the need soon to set up such a reference system. I would just use hashes, but the look-up values themselves are actually variables made up of a scalar and a string of text appended to them and I'm not sure how that can be set up.

Basically I want a loop to check for each value in an array, if each scalar is greater than zero. If so, I want to do something with the corresponding value in a 2nd array.

If there is a way to do this with hashes that would be cool too. I might be able to re-combine the scalar and string values to re-populate the 2nd array before processing my loop.