in reply to Calling a hash through an array value
Bad c! No cookie! We do not use symbolic references.
Instead, make a hash of hashes (or HoH). So, do something like:
Treat it as you would a 2-D array in C or BASIC or JAVA or any other language. The only difference is that you don't have to pre-declare it. Perl does that for you on the fly. (If you don't need or want to know how, then just assume it will work and go about your business.)my %asn; for my $i (@asnValues) { my @asnParams = split / /, $i; my $keyName = $asnParams[0]; $asn{$keyName}{risk} = $queueNsp[2]; }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom