Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

argument from File or Command line ; LDAP

16 views
Skip to first unread message

ysto...@univ.haifa.ac.il

unread,
Aug 3, 2004, 4:39:59 AM8/3/04
to perl...@perl.org
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 ?

If I check variable $uid from command line and from file with function “cmp”, I receive 0 .

Help me, please.

JS.

Chris Ridd

unread,
Aug 3, 2004, 4:00:47 AM8/3/04
to ysto...@univ.haifa.ac.il, perl...@perl.org
On 3/8/04 9:39 am, ysto...@univ.haifa.ac.il <ysto...@univ.haifa.ac.il>
wrote:

> 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


0 new messages