my @array = qw/a b c d/;
my $ref = {};
$code = '$ref->{'.join('}->{', @array).'} = 1;';
eval $code;
use Data::Dumper;
print Dumper($ref);
In reply to Re: Re: Array to hash refs
by Anonymous Monk
in thread Array to hash refs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |