in reply to From: array To: complex hash
This will work. the innermost key will point to an empty hashref.my @list=qw(a b c d e f g); my %hash; my $hptr=\%hash; $hptr = $hptr->{$_}={} foreach @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: From: array To: complex hash
by demerphq (Chancellor) on Jul 07, 2003 at 17:40 UTC | |
|
Re: Re: From: array To: complex hash
by markguy (Scribe) on Jul 07, 2003 at 17:19 UTC | |
by dreadpiratepeter (Priest) on Jul 07, 2003 at 18:11 UTC |