I recently had a similar problem. The error is in your comparison ($i eq $list). Then the loop gets to the point that you are expecting a "Yes", the values of your variables are $i="harv" $list="harv\n" I solved my problem by changing $i to include the carriage return. You could also solve this problem by using pattern matching rather than a straight comparison, or by chopping off the last character of the input lines.
|Replies are listed 'Best First'.|
Re: Re: What is the error in my script or file setup?
by Anonymous Monk on Jun 06, 2002 at 18:57 UTC