Hanson, Rob wrote:
> > Any suggestions on how I can do this?
>
> Yes.
>
> # init the hash key
> $hash{four} = {} unless exists $hash{four};
Due to autovivication, this is not necessary.
>
> # store access the internal hash by following the reference "->"
> $hash{four}->{uid} = "uid4"; $hash{four}->{cn} = "cn4";
> $hash{four}->{group} = "Group4";
n.b., when the -> symbol lies between brackets or braces, it can be omitted.
A bit of syntatic sugar:
$hash{four}->{uid}
can be written as:
$hash{four}{uid}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]