From: Graham B. <gb...@po...> - 2000-10-13 22:00:58
|
On Fri, Oct 13, 2000 at 04:03:25PM -0500, Mark Wilcox wrote: > The value of the hash would have to contain an array. > > like this: > my $array = ['value','value','value']; > or > $array->[0] = 'value'; > $array->[1] = 'value'; > > > $hash->{$key} = $array; Yes that is right. > or it might have to be > $hash->{$key} = @$array; Um, no. That would assign the number 3 to $hash->{$key} Graham. > > Mark > > On Fri, 13 Oct 2000, Werner Reisberger wrote: > > > I want to do something like > > > > $res = $ldap->add ( > > dn => "dc=${dc},$base", > > attrs => [%myhash] ); > > > > Unfortunately only one key/value pair of %myhash is used for the > > entry. I want to use a hash since I have to create entries with a varying > > set of attributes and I don't know how I could do this in a simple way. > > > > Werner > > > |