Beast schreef: > This aparently because of input is coming from <STDIN> and LANG=utf8 > > chomp($username=<STDIN>); > my $exists = ldap_search($username); > > after set "LANG=en_US" it works. > Anyone know the reason?
I guess your input-data wasn't utf8-encoded. If your data was ASCII-only (so no characters >127), your change of LANG shouldn't cause a difference. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>