On Thu, 2003-08-07 at 18:44, [EMAIL PROTECTED] wrote:
> Hello all,
> 
> I have written a script to add new entries in the LDAP directory service,
> but when I setup an array of hosts I
> get the following error when executing the script: "IO::Socket::INET: Bad
> hostname 'myhost1.ldap.com myhost2.ldap.com' at form_processor.cgi line 69"
> 
> Could anyone explain what's happening here.  To my understanding Net::LDAP
> can take an array of hosts.

It can, but it looks like you passed a string with two names separated
by a space. Try

  ['myhost1.ldap.com','myhost2.ldap.com']

Graham.


Reply via email to