From: Mark W. <mew...@un...> - 2000-10-13 21:12:55
|
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; or it might have to be $hash->{$key} = @$array; 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 > |