This will work. the innermost key will point to an empty hashref.my @list=qw(a b c d e f g); my %hash; my $hptr=\%hash; $hptr = $hptr->{$_}={} foreach @list;
In reply to Re: From: array To: complex hash
by dreadpiratepeter
in thread From: array To: complex hash
by markguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |