$line=<file> ;
chop($line);
and split :
($uid,$fname,$sname) = split(/\s+/,$line);
After call function of LDAP , receive endless loop in function of LDAP .
If I get variable $uid as argument from command line :
Prompt>>: Program.pl uid
Then function of LDAP works OK !
Why ?
If I check variable $uid from command line and from file with function “cmp”, I receive 0 .
Help me, please.
JS.
> I read from file
>
>
>
> $line=<file> ;
>
> chop($line);
>
>
>
> and split :
>
>
>
> ($uid,$fname,$sname) = split(/\s+/,$line);
>
>
>
> After call function of LDAP , receive endless loop in function of LDAP .
>
>
>
>
>
> If I get variable $uid as argument from command line :
>
>
>
> Prompt>>: Program.pl uid
>
>
>
> Then function of LDAP works OK !
>
>
>
> Why ?
>
Because the perl fairy makes it work.
>
> If I check variable $uid from command line and from file with function ³cmp²,
> I receive 0 .
>
>
>
> Help me, please.
Seriously ;-) you need to give us a bit more information - like your script
- to help identify the problem.
Cheers,
Chris