You can use tye's Data::Diver:
use Data::Diver qw( DiveVal ); my %hash; my @keys = qw( A B C D E F ... ); DiveVal(\%hash, @keys);
Caveat: It won't work if one of the keys looks like a number.
Tested.
In reply to Re: How to Create Hash From this Array
by ikegami
in thread How to Create Hash From this Array
by echoangel911
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |