Re: rpoblem with open two files in a script

2001-11-24 Thread John W. Krahn
Nir Cohen wrote: > > I try to write a script that open 2 files . > the first file is /etc/passwd which in the first column has the > users name in my server .the second file is a file that has just users name in each >row. > I want a script that will check both files and if the users name is the

RE: rpoblem with open two files in a script

2001-11-24 Thread Wagner-David
Yoiu are doing an assignment vs a check. Also when doing checking the numeric checks are ==, > , < but for the type of chck you want , use eq (ie if ( $z eq $a ) { # do something} The ' if ( $z = $a )' catches most at least once. Wags ;) -Original Message- From: nir