If I understand you correctly, you should be able to use $hash{$variable_name}{'fixed name'} both as an lvalue or an rvalue.
Try this (tested):
use strict; my %hash; $hash{'test1'}{'fixed name'} = 42; my $variable_name = 'test1'; print $hash{$variable_name}{'fixed name'}; print "\n";
When executed, it prints 42.
In reply to Re: How to get specific hash elements?
by MonkE
in thread How to get specific hash elements?
by talking_walnut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |