Hi, On Wed, 28 Mar 2018 13:00:47 +0700 Olivier <olivier.nic...@cs.ait.ac.th> wrote:
> Hi, > > I am building a script to modify my LDAP directory and I want to use > something like: > > $mesg = $ldap->modify( $dn, > replace => { > description => 'New List of members', > seeAlso => 'Some reference' > } > ); > > But I would like to build the list of replacements dynamically, that is, > have a variable of the appropriate type, where I can first store > "description" and "New List of members" then also store "seeAlso" and > "Some reference"; and then only use that variable to do the replace. > please see http://perl-begin.org/topics/references/ . > I have two questions: > > - What type should I use for the variable? > > - What will be the syntax for the $ldap->modify statement? > > Thanks in advance, > > Olivier > > > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ “So, who the hell is Qoheleth?” - http://shlom.in/qoheleth When people agree with me I always feel I must be wrong. — https://en.wikiquote.org/wiki/Oscar_Wilde (via fortune-mod) Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/