in reply to Re: Reading from filehandles in a loop and matching lines
in thread Reading from filehandles in a loop and matching lines

Hi, You were spot on with the tabs error! I'm so blond! Can't believe I didn't see that. Thanks.

You the purpose of this script was so that it can do the following:
1. Identifies the name, department and salary of the employee
2. Ignores and goes to the next line if the employee is female (the name does not start with Mr)
3. Ignores and goes to the next line if the salary is less or equal to 25000.
4. Ignores and goes to the next line if the department is not "R&D".
5. Prints the name and the salary of the employee on the screen.
  • Comment on Re^2: Reading from filehandles in a loop and matching lines