what you want to do is possible, but why bother with doing complicated things with the symbol table and even do no strict; when you can have a simple hash of hashes?
my @hashNames = qw(testA testB testC); my $i = 0; my %hoh; foreach (@hashNames) { $hoh{$_}->{key} = $i; } # later print $hoh{testA}->{key};
In reply to Re: Dynamically naming and creating hashes
by tinita
in thread Dynamically naming and creating hashes
by mellin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |