I prefer understanding this before using it.1) use Data::Dumper; 2) my @keys = qw( this that those ); 3) my $node = \\my %hash; 4) $node = \$$node->{$_} for @keys; 5) $$node = "value"; 6) print Dumper \%hash;
In reply to Re: Re: setting hash keys by array
by hotshot
in thread setting hash keys by array
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |