in reply to Re: Array to hash refsin thread Array to hash refs
my @array = qw/a b c d/; my $ref = {}; $code = '$ref->{'.join('}->{', @array).'} = 1;'; eval $code; use Data::Dumper; print Dumper($ref);