- or download this
#! /usr/bin/perl -w
# Set up some stuff for this example
...
# Show that it worked
print Dumper(\%hash);
- or download this
my $hash;
my $work = \$hash;
$work = \$$work->{$_} for @levels;
$$work = $value;
- or download this
$hash{join(",", @levels)} = $value;