[Haifux] Question :argument from File or Command line ; LDAP

2004-08-09 Thread Nir Abulaffio
Hi all, This is a problem we have come across. Any suggestions? Nir. when I read from a file $line=file ; chop($line); and split : ($uid,$fname,$sname) = split(/\s+/,$line); After a call to function of LDAP (add),I receive an endless loop in function of LDAP . If I get variable $uid as argument

Re: [Haifux] Question :argument from File or Command line ; LDAP

2004-08-09 Thread emild
Hi, I am neither a Perl nor an LDAP expert, but here are some hints: 1) it's better to use chomp instead of chop 2) I think it's better if you pass just a single space (' ') as the first parameter to split() (without slashes, i.e. the call would be split(' ',$line); ). This means that split()