if you don't want to overwrite old values in the hash, it's a bit more complicated, but not much.my $hash; $hash = { $_ => $hash } for reverse @array;
my $ref = \$hash; $ref = \$$ref->{$_} for @b;
In reply to Re: How to Create Hash From this Array
by tinita
in thread How to Create Hash From this Array
by echoangel911
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |